Support the ongoing development of Laravel.io →
Artisan Laravel

When first running laravel in local terminal with the command 'php artisan serve', then the application will run on localhost with port 8000, so the base url will be http://localhost:8000/.

How do I change the base url to a custom url, like '**http://localhost:8000/myproject**'?

Last updated by @stevenmw 2 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

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.