skip to Main Content
[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


  1. As the error show, the categories table does not exist in your database. In your sql query you are trying to join categories table.

    I am not sure what you trying to do but please make sure you create a migration for categories table and define a Category model.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
  3. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search