Laravel setup
Prepare your local Laravel installation for fortrabbit.
# Get ready
- Local development environment up and running.
- Laravel installed locally best with attached Git repo.
- Install the fortrabbit GitHub App for automatic deployments.
# Create an app at fortrabbit
Create a new app in the fortrabbit dashboard. The wizard will guide you through the steps. You can connect the repo from GitHub.
# Software template
If Laravel is detected or you have chosen it in the software list, the Laravel software template will be applied. This will pre-configure common ENV vars, build and post-deploy commands and set the root path to public.
# MySQL configuration
Not all Laravel projects require a database connection. Some do. Just keep config/database.php as it is when you have chosen Laravel with the software template. The all CAPITAL configs in the config/database.php file will be replaced by the contents of the environment variables. For your local development setup you can populate the .env file with your local database credentials. See the ENV var topic as well.
This will enable the environment to connect to the database.