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
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 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
Laravel storage link keep redirected to /public directory in hosting
I’m using a hosting service to upload my laravel project and link it to laravel’s public directory using php header location in laravel’s root directory. Then I created a storage link in public directory using symlink or artisan command, but when I’m trying to access the files it always redirected to /public, I wonder why? Header location index.php The image
Passing a list of menu items to the sidebar in Backpack Laravel
I’m trying to send a list to sidebar_content.blade.php. The idea would be getting the menu items from a database. I guess I should add the variable to the @include in every subview in the “chain”, but I don’t know which controller (if any) starts that chain. I have read the docs and tried to find tutorials, projects or people asking
Laravel php artisan serve not doing anything and project not being created properly (windows 10)
I am trying to use Laravel for the first time. I am trying to install it precisely as the guide says with composer but when I create a new project I get the following error: Problem 1 – laravel/framework[v8.65.0, …, 8.x-dev] require league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.0, …, 1.x-dev]. – league/flysystem[1.1.0, …, 1.x-dev] require ext-fileinfo * -> it is
Laravel and AWS SQS, How to read job payload / retrieve queue?
I struggling from last 3 days about how I can read queued job payload in Laravel. What I’ve achieved till yet. Dispatch a job and see that it is available on AWS SQS queue. After that I’ve executed listener and worker for AWS to process queued jobs and I see that it is working fine as well. Right now I
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