Skip to content
Advertisement

404: file not found. Laravel failed to load home.blade.php file

I’m new to the Laravel framework, so I’m following this tutorial, cloning instagram. After designing the front end, all was going well, until I started working with php artisan. I have created the user and profile database, migrated them successfully, and linked them in a one-to-one relationship.

But, after this, trying to login, and navigate to home, I’m getting a

404, not found error

I can’t seem to figure out what’s wrong.

profileController:

JavaScript

homeController:

JavaScript

web.php:

JavaScript

profile created via php artisan

JavaScript

Am I missing something?

Advertisement

Answer

By default, after a successful login, it directs you to ‘/home’ which is missing in your web route.

JavaScript

You can replace homeController with the name of your controller and index with this method.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement