This project serves as boilerplate code to easily setup a devenv environment for laravel.
- get the boilerplate code
- either by just using this repository as template
- or by downloading the source code
project=<YOUR_PROJECT_NAME> # replace <YOUR_PROJECT_NAME> with your project name wget -O laravel-devenv.zip https://github.com/devloberto/laravel-devenv/archive/refs/heads/master.zip unzip laravel-devenv.zip rm laravel-devenv.zip mv laravel-devenv-master $project cd $project # direnv allow # optional but recommended at this point git init && git add . && git commit -m "initial commit"
- scaffold laravel
composer create-project laravel/laravel cd laravel npm install cd ..
- adapt the DB configuration in
./laravel/.env
:DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=develobearer DB_USERNAME=develobear DB_PASSWORD=Test-1234
- run the database migrations
php laravel/artisan migrate
- start your development environment
devenv up
Now you should see the laravel page at http://localhost:8000 and the adminer login at http://localhost:8810.