When I change my SQL server from pgsql (localhost) to MySQL (remote host) in the env file
database.php file has this line:
'default' => env('DB_CONNECTION', 'mysql'),
i run:
php artisan serve
and I call my page it does not respond and get stuck
After this, I press CTRL+C and close Laravel.
Then I restart the engine PHP artisan serve, and then I get this error:
Laravel development server started: http://127.0.0.1:8000 [Sun Sep 16 16:05:52 2018] Failed to listen on 127.0.0.1:8000 (reason: Address already in use)
Is there something I am missing.
If I go back to my localhost database of pgsql and don't change the line
'default' => env('DB_CONNECTION', 'mysql'),
in my database.php file it works fine. (it should not because I am using a pgsql database)
I also tried using
php artisan serve --port 3333
but that has given the same behavior.