I'm using laravel 5.2 and I have problem with migrations . ( I am a beginner )
when I create a table, there is no problem, but when I run php artisan migrate this error show up :
[PDOException]
SQLSTATE[HY000] [1049] Unknown database 'homestead'
my env file data :
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=root
DB_PASSWORD=
my config/database.php file :
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'homestead'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => null,
],
my app env use 'local' , but I can't run this command .
I'm just running php -S localhost:8888 -t public to access localhost and I don't run anything else . should I run anything else ?
pre thanks for your help .