Answer the question
In order to leave comments, you need to log in
php artisan error, need laravel 5.3 table to use it?
I was sitting creating migrations php artisan make:migration create_mytable_table
. Suddenly, it gives an error, in order to create a table, a table is needed o_O
Error:
[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lara53.messages' doesn't
exist (SQL: select * from `messages` where `status` = 0)
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lara53.messages' doesn't
exist
> php artisan dumpautoload
> php artisan dump-autoload
Answer the question
In order to leave comments, you need to log in
Where is your migration? Psychics on vacation as always.
Most likely you wrote Schema::table
instead of Schema::create
The first option is modification
The second is creation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question