diff --git a/.docker/php/Dockerfile b/.docker/php/Dockerfile index cb2aa131..84ee6485 100644 --- a/.docker/php/Dockerfile +++ b/.docker/php/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.3-fpm +FROM php:8.4-fpm COPY php.ini /usr/local/etc/php/ COPY docker.conf /usr/local/etc/php-fpm.d/docker.conf @@ -29,6 +29,9 @@ RUN pecl install redis && docker-php-ext-enable redis # pcov RUN pecl install pcov && docker-php-ext-enable pcov +# pcntl +RUN docker-php-ext-install pcntl + # Xdebug # RUN pecl install xdebug \ # && docker-php-ext-enable xdebug \ diff --git a/.env.example b/.env.example index 36e1a773..6be969ab 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,6 @@ APP_NAME=Laravel APP_ENV=local APP_KEY= APP_DEBUG=true -APP_TIMEZONE=UTC APP_URL=http://localhost APP_LOCALE=en @@ -10,7 +9,9 @@ APP_FALLBACK_LOCALE=en APP_FAKER_LOCALE=en_US APP_MAINTENANCE_DRIVER=file -APP_MAINTENANCE_STORE=database +# APP_MAINTENANCE_STORE=database + +PHP_CLI_SERVER_WORKERS=4 BCRYPT_ROUNDS=12 @@ -37,7 +38,7 @@ FILESYSTEM_DISK=local QUEUE_CONNECTION=database CACHE_STORE=database -CACHE_PREFIX= +# CACHE_PREFIX= MEMCACHED_HOST=127.0.0.1 @@ -47,11 +48,10 @@ REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_MAILER=smtp -MAIL_HOST=mailpit +MAIL_HOST=mail MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null -MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS="hello@example.com" MAIL_FROM_NAME="${APP_NAME}" diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 73290740..fbac4f87 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -28,8 +28,8 @@ jobs: run: | mkdir -p database touch database/database.sqlite - - name: Execute tests (Unit and Feature tests) via PHPUnit + - name: Execute tests (Unit and Feature tests) via Pest env: DB_CONNECTION: sqlite DB_DATABASE: database/database.sqlite - run: vendor/bin/phpunit + run: ./vendor/bin/pest diff --git a/README.md b/README.md index 70fd5730..44e5e6cd 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@
# Laravel Docker Starter Kit -- Laravel v11.x -- PHP v8.3.x +- Laravel v12.x +- PHP v8.4.x - MySQL v8.1.x (default) - MariaDB v10.11.x - PostgreSQL v16.x @@ -35,7 +35,8 @@ # Notes ### Laravel Versions -- [Laravel 11.x](https://github.com/refactorian/laravel-docker/tree/main) +- [Laravel 12.x](https://github.com/refactorian/laravel-docker/tree/main) +- [Laravel 11.x](https://github.com/refactorian/laravel-docker/tree/laravel_11x) - [Laravel 10.x](https://github.com/refactorian/laravel-docker/tree/laravel_10x) ### Laravel App diff --git a/app/Models/User.php b/app/Models/User.php index def621f4..749c7b77 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -9,12 +9,13 @@ class User extends Authenticatable { + /** @use HasFactory<\Database\Factories\UserFactory> */ use HasFactory, Notifiable; /** * The attributes that are mass assignable. * - * @var array