Is it possible to use Ip address instead of localhost in laravel?
To make it work outside of localhost, run php artisan serve --host xxxx
If you want it to work without specifying a port in the browser, php artisan serves as --host xxxx --port 80. sudo is most likely required for Mac.
Note. Php artisan service should never be used for production. It is for developers and demos only and will not be able to handle more than one person or two traffic.
source to share