Skip to content

sudo-which-qp/qp_laravel_api_template_v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QP Laravel API Template

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.

Common Issues (Most of this issues came from windows PC)

  1. 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

  2. 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.

  3. 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"

  4. 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

About

A Laravel Scaffold for my backend applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages