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