Set Up Laravel .env from Example

Copies .env.example to .env and generates the application encryption key. The APP_KEY must be set before Laravel can encrypt sessions, cookies, and model values.

When you need this: On first deployment of a new Laravel application to any server.

Variables

Command


        
2 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.