You can use the Artisan Facade like this:
\Artisan::call("migrate",["--pretend" => 1]);
see https://laravel.com/docs/5.2/artisan#calling-commands-via-code
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community