امروز:شنبه ,۱۳۹۸/۰۶/۰۲
Download http://bigtheme.net/joomla Free Templates Joomla! 3
Home / Laravel / No application encryption key has been specified New Laravel app

No application encryption key has been specified New Laravel app

No application encryption key has been specified  New Laravel app

 

whene install new laravel app and run in localhost display error:

RuntimeException

application encryption key has been specified

No application encryption key has been specified  New Laravel app

solution1:
execute below code in command line in root project

php artisan key:generate

solution2:

open .env file and set random string for APP_KEY

APP_KEY=0vBc3z5o9R+3usc+zVKhRJghRS0LFgrQZDYArKOYlqc=

solution3:

open app.php file in config folder in root project
and change key

    'key' => '0vBc3z5o9R+3usc+zVKhRJghRS0LFgrQZDYArKOYlqc=',

No application encryption key has been specified  New Laravel app

Check Also

نکته-مهم-session-laravel

نکته-مهم-session-laravel کار با سشن در فریم ورک لاراول ساده است که به چند روش قابل …

پاسخ دهید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *