Demo on how to serve multiple applications with one Laravel codebase using subdomain routing.
- Basic knowledge of the Laravel framework.
- Laravel CLI installed on your machine.
- Valet installed on your machine.
- A code editor like Visual Studio Code.
- SQLite installed on your machine.
โ ๏ธ Valet is only officially available to Mac users. However, there are ports for both Linux and Windows available.
To get up and running, simply run the following commands, first clone the repository and run the following commands
$ composer install
$ valet link acme
$ valet link api.acme
$ valet link admin.acme
Next, copy the .env.example
file to .env
and then add your database keys, and the APP_BASE_DOMAIN
. Run the command below:
$ php artisan migrate --seed
And you are good to go.
- Laravel - PHP framework