Skip to content
Advertisement

Tag: laravel

Laravel: getting blade components syntax error, unexpected ‘endif’ (T_ENDIF), expecting end of file

I am learning laravel on Laracast however I am having some issues I have this code on file components/layout.blade.php And this on main.blade.php which is the page the view redirects to For some reason Laravel is returning this error: Answer I found what was causing the problem, I had a space between content and =”Hello There” by removing it and

Laravel Views – Possible caching issue

I’m trying to test a laravel upgrade on our production server. I created a new vhost and copied the entire directory over of the original laravel app to the new vhost root. So I have app.mydomain.com with the original (laravel 5.8 app) and l6.mydomain.com with the copied version. My issue is that if I make any changes to the views

Decimal are converted to String in Laravel, cast is not working

I have a problem changing data type column in my table, from double to decimal each (6,2). Olso trying to $cast the variable to float, I’ve tried to cast olso as decimal, but nothing change, nothing change: if I dd $this in my resource I got this: The data back to be a number only if I rollback the data

Laravel route setting incorret and search function issues

This function search user from MySQL. Can anyone knows which part I did wrong ?, searchUser function is not triggered. admin view Answer You can remove type=”button” from below line or change type=”submit” If still that not works for you then you should defile action=”{{ route(‘YOUR ROUTE NAME’) }}” in tag

Preventing http access in Laravel 8

I have a question about force using HTTPS in laravel, i’ve added a condition inside AppServiceProvider.php, creating a middleware and modifying the .htaccess file. But I can still access the http page. Is there any other way to get laravel to redirect to https instead of http, and how to prevent user to acces the http addres? thank you! my

Boostrap popup from a loop in Laravel

I have content from a loop and I’m displaying title and image in a grid boxes. In addition, in every box of content I have View more button and when a user clicks on, it shows the full content (title, image, body) in popup. I have tested with Bootstrap modal and the popup functionality works but when I click the

Advertisement