How can I use Artisan command line in my php caode Ex: php artisan --version
to <?php echo 'version show here'; ?>
.
You can call Artisan command from your controller as below :
//calling of migrate install
Artisan::call('migrate:install');
i.e. just use
Artisan::call('Commandname');
For more info check this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With