P
P
PhP_Raz2016-05-25 13:35:23
Laravel
PhP_Raz, 2016-05-25 13:35:23

What's wrong with artisan in Laravel?

Hello.
There was a problem with laravel. I clone the project from github, in the console I type composer install , after installing all the packages in the .env file I write the host, database, username and password, then in the console I type php artisan key:generate , to generate APP_KEY, it gives the following error:

[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lara_test.pages'
doesn't exist (SQL: select * from `pages`)
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lara_test.pages'
doesn't exist

I typed php artisan migrate the same error, even after php artisan list command this error comes out.
What is the problem? The database "lara_test" exists, I checked it several times, though it is empty.
Link to the proest itself .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D', 2016-05-25
@PhP_Raz

Obviously somewhere someone is breaking into the database at the initialization stage.
Most likely some service provider or in the routes.php file

S
Stanislav Pochepko, 2016-05-25
@DJZT

Maybe you need to do a migration?
or before that
php artisan vendor:publish

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question