Let us provide you with a handy tip for developing a Laravel app on a WAMP / LAMP / MAMP stack on your desktop computer.
To separate the directory in which you’re developing your Laravel app and open it on a separate domain on your local machine instead of on http://localhost/laravel-directory/, you should do the following changes to your hosts file and Apache web server configuration.
Add the following line to your hosts file:
127.0.0.1 laravel.lh
You can read more about editting your hosts file here.
After that you should add the following directives to your Apache configuration:
<VirtualHost *:80>
DocumentRoot C:pathtolaravelapp
# or DocumentRoot /var/www/laravel/public – depending on your OS
ServerName laravel.lh
</VirtualHost>
Restart your webserver and you’ll be able to open your Laravel app at http://laravel.lh/ or whatever domain you prefer yourself.
We are always ready to assist you with the transfer of your Laravel application on your shared account or VPS with us when you’re done developing. 🙂