Find the configuration options bellow:
- Change mysql root password in .env file (default is password)
- Change service name (your laravel project name)
- Change PHP image version (if you want, default is 8.4.3-apache)
- Run
make setup
if you just cloned the repositorylaravel-docker
- Run
make setup-from-scratch
if you clonedlaravel-docker-template
- Run command
make build
if you want to build image - Run command
make stop
to stop container or service - Run command
make up
to start container - Run command
make install-laravel-app
to install fresh laravel inlaravel-app
directory - Run command
make composer-update
to install laravel dependencies - Run command
make migrate
to migrate laravel migrations - Run command
make seed
to seed laravel databases - Rum command
make composer command='composercommand'
to run composer commands in docker container, for examplemake composer command='update'
and it will runcomposer update
command - Rum command
make npm command='npmcommand'
to run npm commands in docker container, for examplemake npm command='--help'
and it will runnpm --help
command - Run command
make controller name='controller name' flags='use flags'
to create laravel controller in docker container, for examplemake controller name='AdminController' flags='--resource'
will create AdminController.php resource controller - Run command
make model name='model name' flags='use flags'
to create laravel controller in docker container, for examplemake controller name='Admin' flags='-m'
will create Admin.php model with migration - Run command
make migration name='controller name' flags='use flags'
to create laravel controller in docker container, for examplemake migration name='admin_migration' flags='--table=Admin'
will create admin_migration migration with table Admin - Run command
make artisan command='artisancommand'
to run artisan command in docker container, for examplemake artisan command='migrate'
will runphp artisan migrate
Portfolio | Link |
---|---|
Upwork | https://www.upwork.com/freelancers/delower |
GitHub | https://github.com/delower186 |