No query results for model [App\Shop\Categories\Category] 1
I just clone laravel app from github and now am facing different kinds of errors. After all the installation and setting I got this error: No query results for model [App\Shop\Categories\Category] 1.
This is the my controller:
This reason you get this error is because there is no item in the database that matches the query. So you either need to insert the data or build in a check whenever this item is not available.
I expect that there is some table called categories that is connected to this Category model. If you add some categories in there you should be fine. Can you share the code in the controller? Based on that I might be able to give you a better answer!