I have this command in artisan:
php artisan tenants:artisan "migrate" --tenant=22
How can I call this command in Artisan facades?
I have this command in artisan:
php artisan tenants:artisan "migrate" --tenant=22
How can I call this command in Artisan facades?
You can use Artisan
Artisan::call('tenants:artisan migrate --tenant=22')
import right facade
use Illuminate\Support\Facades\Artisan;