The first thing we should do after installing Laravel is set our application key to a random string. If we installed Laravel via Composer, this key has probably already been set for you by the key:generate
command.
Typically, this string should be 32 characters long. The key can be set in the .env
environment file. If the application key is not set, your user sessions and other encrypted data will not be secure!
Laravel needs almost no other configuration out of the box. You are free to get started developing! However, you may wish to review the config/app.php
file and its documentation. It contains several options such as timezone
and locale
that you may wish to change according to your application.