Skip to content
Advertisement

Laravel eloquent model Class not found

This is my web.php in routes folder

JavaScript

This is my Task model, Task.php

JavaScript

I dont know why when i go /task , an error shown

Class ‘AppTask’ not found

Can someone help me? I am new to Laravel

Advertisement

Answer

Top of your web.php route file mention model

JavaScript

and then use

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