Skip to content

Tag: laravel

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 m…

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(&#…

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…

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 …