[enter image description hereenter image description here](https://phpout.com/wp-content/uploads/2023/06/m3OJP.png)
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘blogchan_laravel_blog.categories’ doesn’t exist
what is the solution to solve the problem?
Help me please…
3
Answers
As the error show, the
categories
table does not exist in your database. In your sql query you are trying to joincategories
table.I am not sure what you trying to do but please make sure you create a migration for
categories
table and define aCategory
model.As it seems, categories table is missing from your database. First create a migration for the table if you haven’t already and then run the migration. That should resolve the issue.
Its Clear that You Have Not Created any Table Like categories In Your Database.
First Create a Migration File For categories Then run Migration or Create the table directly in your database then Check