This commit is contained in:
Refactorian
2024-03-22 23:12:50 +09:00
parent dbf6a789a2
commit e0c6f605d4
5 changed files with 17 additions and 13 deletions

View File

@@ -19,12 +19,12 @@ LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug LOG_LEVEL=debug
DB_CONNECTION=sqlite DB_CONNECTION=mysql
# DB_HOST=127.0.0.1 DB_HOST=db
# DB_PORT=3306 DB_PORT=3306
# DB_DATABASE=laravel DB_DATABASE=refactorian
# DB_USERNAME=root DB_USERNAME=refactorian
# DB_PASSWORD= DB_PASSWORD=refactorian
SESSION_DRIVER=database SESSION_DRIVER=database
SESSION_LIFETIME=120 SESSION_LIFETIME=120
@@ -42,7 +42,7 @@ CACHE_PREFIX=
MEMCACHED_HOST=127.0.0.1 MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1 REDIS_HOST=redis
REDIS_PASSWORD=null REDIS_PASSWORD=null
REDIS_PORT=6379 REDIS_PORT=6379

View File

@@ -21,6 +21,8 @@
# How To Deploy # How To Deploy
### For first time only ! ### For first time only !
- `git clone https://github.com/refactorian/laravel-docker.git`
- `cd laravel-docker`
- `docker compose up -d --build` - `docker compose up -d --build`
- `docker compose exec php bash` - `docker compose exec php bash`
- `composer setup` - `composer setup`
@@ -30,6 +32,10 @@
# Notes # Notes
### Laravel Versions
- [Laravel 11.x](https://github.com/refactorian/laravel-docker/tree/main)
- [Laravel 10.x](https://github.com/refactorian/laravel-docker/tree/laravel_10x)
### Laravel App ### Laravel App
- URL: http://localhost - URL: http://localhost

View File

@@ -52,10 +52,9 @@
"setup": [ "setup": [
"composer install", "composer install",
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"", "php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"php artisan key:generate --ansi", "php artisan key:generate",
"php artisan config:cache", "php artisan config:cache",
"php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"", "php artisan migrate",
"php artisan migrate --graceful --ansi",
"npm install", "npm install",
"npm run build" "npm run build"
] ]

View File

@@ -1,5 +1,4 @@
version: '3' version: '3'
name: laravel-project
services: services:

View File

@@ -21,8 +21,8 @@ return RectorConfig::configure()
]) ])
->withSets([ ->withSets([
SetList::DEAD_CODE, SetList::DEAD_CODE,
LevelSetList::UP_TO_PHP_82, LevelSetList::UP_TO_PHP_83,
LaravelSetList::LARAVEL_100, LaravelSetList::LARAVEL_110,
]) ])
->withRules([ ->withRules([
AddVoidReturnTypeWhereNoReturnRector::class, AddVoidReturnTypeWhereNoReturnRector::class,