Why isn't 'laravel new' generating an application key automatically?

Posted 10 months ago by takdw

This has been bugging me for a while but it wasn't much of a big deal. The thing is when I run laravel new myapp, sure I get a fresh copy of Laravel but it doesn't generate and set an application key automatically. I have to copy the .env.example file to .env and run php artisan key:generate manually every single time. Whats the issue here?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.