Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 2 years ago.
0

Laravel saves the new key in the environments variables (.env) file. The following code is from the 'key generate' command.

   $path = base_path('.env');

if (file_exists($path)) {
    file_put_contents($path, str_replace(
        'APP_KEY='.$this->laravel['config']['app.key'], 'APP_KEY='.$key, file_get_contents($path)
   ));
}
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mbcraft mbcraft Joined 27 Aug 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.