Laravel application is not automatically opening in my browser php artisan serve
must open in browser directly
when i execute php artisan serve
the url must open in browser .
When in start Laravel application it must open in browser directly
Laravel application is not automatically opening in my browser php artisan serve
must open in browser directly
when i execute php artisan serve
the url must open in browser .
When in start Laravel application it must open in browser directly
2
Answers
I don’t think running
php artisan serve
on its own automatically opens your Laravel application in a browser tab. Doing it manually should not be difficult.But if you really insist, here’s a one-liner command for Windows:
On Linux:
For Linux
Save the above code in a file as .sh, for example, start_laravel.sh.
chmod +x start_laravel.sh
then
./start_laravel.sh
For Windows
Save the above code in a file as .bat, for example, start_laravel.bat and run