gecche / laravel-multidomain

A Laravel extension for using a laravel application on a multi domain setting
MIT License
843 stars 105 forks source link

How to run migrations #25

Closed codebrewtest closed 4 years ago

codebrewtest commented 4 years ago

I want some modification into the table then how to update table for all domain

gecche commented 4 years ago

Hi,

it is not possible to run an artisan command for all domains at once. The only way would be a "like-artisan" shell script as detailed extensively in #14. Note that this is not a bug but it is due to how the environment is handled by Laravel (and there is nothing wrong in that).

To date you have to run a migrate command for each domain, unless you want to contribute to such a script :)

Cheers

Giacomo

P.S.: I close the issue as already addressed... if you liked the package please leave a star if you haven't done yet! ;)