My Blog Posts

Laravel Multidomain Package

Laravel Multidomain Package


This package provides a specific env file for each customer, a specific storage path, and a very simple way to build a specific database.

Setup completed And in the eoku Settings after doing so you can use package commands to manage domains:

# Adding a domain
php artisan domain:add site1.com 
php artisan domain:add site2.com 

# Removing a domain
php artisan domain:remove site2.com 
When you add a domain, .env configuration file is created for that domain:
php artisan domain:add site1.com.com 
# Generates the following configuration file.env.site1.com
The following domains domain:list with command list

php artisan domain:list
You can learn more about this package, take the installation instructions in full, and Find gecche / laravel-multidomain in Gitche .



Share this article


Comments (0)

Comment