So this is me trying to make a laravel template, if you have any issues please let me know.
This is mostly focused on building API's if you make use of laravel for building livewire and adding React or Vue to your laravel project, I don't think this is for you, but you can modify the code base to suit you and what you want.
-
Make sure to use "docker-compose up --build", so everything can run well, you can to enter the docker sh of the container to run the php artisan migrate and other artisan commend
-
If you are getting any error about environment variables, you need to make sure you have created an environment variable with all te values, you can just copy from the .env.example file.
-
On windows not common on Macs, the expose server from the docker container might not load up or work. what you just have to do is run this command "docker network create application"
-
If you run the build for the first time after cloning the project and you get an error when trying to run docker-compose again, make sure that the "data/" is in the dockerignore file, if you need all the files in the data you can only ignore "data/mysql.sock".
But I built a CLI in Go to help me clone the project and make it for any project I want. The CLI will help you get everything set, instead of cloning the project each time from GitHub.
Here is the repo to the CLI QP Laravel CLI