Support the ongoing development of Laravel.io →
posted 6 years ago
Laravel

I am building a Laravel site, and want to test it on other devices as I build it (phone, ipad etc).

As I understand it, the way to do this is to run php artisan serve --host=0.0.0.0.

My question is... is there a way to define a default value for the host, and set it to 0.0.0.0, so that I can simply run php artisan serve and it will automatically run on 0.0.0.0?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Nathan Budd n8udd Joined 1 Jun 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.