\Artisan::call('migrate'); works for me.
Artisan::call('migrate'); will work if you add use Illuminate\Support\Facades\Artisan;.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.