In this trick you will see how to run artisan command from laravel controllerIn routes/web.phpRoute::get('/run-artisan-command-xyz','MyController@runArtisanCommand');
In your Cont ...
php artisan optimize is used to remove the boostrap/cache/ directory files and recreates it.From Laravel 5.5 php artisan optimize commnad is removed and no longer needed. ...
Laravel's clear-compiled is an artisan command to clear the compiled classes and services.To clear compiled classes in Laravel please run below command. php artisan clear-comp ...
How to stop laravel server?Well you have started your laravel server successfully now you want to stop server. To execute php artisan serve stop simply goto your commnad line where ...
How to Run migrations in LaravelRunning migration in Laravel is easy task. Below are few artisan commands for to run database migration in Laravel Framework. 1. php artisan migrat ...
What is php artisan?PHP artisan is the command line interface/tool included with Laravel. It provides a number of helpful commands that can help you while you build your applicatio ...
How to change column type in Laravel MigrationIn this trick we will see how to change column data type for example we are going to change a field from varchar to longText. To do th ...