thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

A table was not found #5259

Closed xtent1405 closed 3 years ago

xtent1405 commented 3 years ago

NEW TO LARAVEL

Description

Hi I'm currently a high school student who's trying out laravel admin panel for the first time, I created an Admin table, then created its bread. When I tried clicking the admin part, there's an issue stating: Illuminate\Database\QueryException SQLSTATE[42S02]: Base table or view not found: 1146 Table 'adminpanel.admins' doesn't exist (SQL: select * fromadminsorder bycreated_atdesc). I have no idea on how to figure it out pls help me.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a new laravel app and install voyager.
  2. Create a new database in voyager called "admin"
  3. Create a bread
  4. Then the error showed up. :/

Expected behavior

I was expecting it to just work just like in the video, https://www.youtube.com/watch?v=CGALfsrpZb8&list=PL_UnIDIwT95NureFNedKN9_GA6UOiS2ox&index=8

MrCrayon commented 3 years ago

As the issue template says, if you have a question you should ask on Voyager slack channel not here.

Voyager is based on Laravel so there is were you should start when you have problems, in your case you are not following Laravel naming standards. https://laravel.com/docs/8.x/eloquent#table-names

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.