Run artisan command to generate key in laravel

Sometimes you have to generate the key for a laravel project using artisan command. You can use php artisan key:generate command to generate key.

Answers 1