php artisan key generate use code example Example 1: php artisan key generate php artisan key:generate Example 2: laravel generate key php artisan key:generate