Support the ongoing development of Laravel.io →
Views Blade Testing
Last updated 2 years ago.
0
php artisan serve --port=80

This will only work if you don't already have something (i.e. Apache) running on port 80.

0

So is there any other way for me to get the url to look like

test.com
0

Why bother for a tutorial? If you're that hung up on it, you might as well quit using artisan serve, install Apache and configure a VirtualHost.

0

I suppose that you can edit your hosts file and add test.com as an alias for 127.0.0.0.0

artisan serve uses the php build-in server and it is equivalent to

php -S localhost:8000 -t public

you can find more options in php documentation...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

shiva shiva Joined 24 Jul 2014

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.

© 2024 Laravel.io - All rights reserved.