Skip to content

Commit f66f1ff

Browse files
committed
laravel 12
1 parent 4f6154a commit f66f1ff

31 files changed

+3297
-1383
lines changed

.docker/php/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.3-fpm
1+
FROM php:8.4-fpm
22

33
COPY php.ini /usr/local/etc/php/
44
COPY docker.conf /usr/local/etc/php-fpm.d/docker.conf

.env.example

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ APP_NAME=Laravel
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5-
APP_TIMEZONE=UTC
65
APP_URL=http://localhost
76

87
APP_LOCALE=en
98
APP_FALLBACK_LOCALE=en
109
APP_FAKER_LOCALE=en_US
1110

1211
APP_MAINTENANCE_DRIVER=file
13-
APP_MAINTENANCE_STORE=database
12+
# APP_MAINTENANCE_STORE=database
13+
14+
PHP_CLI_SERVER_WORKERS=4
1415

1516
BCRYPT_ROUNDS=12
1617

@@ -37,7 +38,7 @@ FILESYSTEM_DISK=local
3738
QUEUE_CONNECTION=database
3839

3940
CACHE_STORE=database
40-
CACHE_PREFIX=
41+
# CACHE_PREFIX=
4142

4243
MEMCACHED_HOST=127.0.0.1
4344

@@ -51,7 +52,6 @@ MAIL_HOST=mail
5152
MAIL_PORT=1025
5253
MAIL_USERNAME=null
5354
MAIL_PASSWORD=null
54-
MAIL_ENCRYPTION=null
5555
MAIL_FROM_ADDRESS="[email protected]"
5656
MAIL_FROM_NAME="${APP_NAME}"
5757

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
22

33
# Laravel Docker Starter Kit
4-
- Laravel v11.x
5-
- PHP v8.3.x
4+
- Laravel v12.x
5+
- PHP v8.4.x
66
- MySQL v8.1.x (default)
77
- MariaDB v10.11.x
88
- PostgreSQL v16.x
@@ -35,7 +35,7 @@
3535
# Notes
3636

3737
### Laravel Versions
38-
- [Laravel 11.x](https://github.com/refactorian/laravel-docker/tree/main)
38+
- [Laravel 11.x](https://github.com/refactorian/laravel-docker/tree/laravel_11x)
3939
- [Laravel 10.x](https://github.com/refactorian/laravel-docker/tree/laravel_10x)
4040

4141
### Laravel App

app/Models/User.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99

1010
class User extends Authenticatable
1111
{
12+
/** @use HasFactory<\Database\Factories\UserFactory> */
1213
use HasFactory, Notifiable;
1314

1415
/**
1516
* The attributes that are mass assignable.
1617
*
17-
* @var array<int, string>
18+
* @var list<string>
1819
*/
1920
protected $fillable = [
2021
'name',
@@ -25,7 +26,7 @@ class User extends Authenticatable
2526
/**
2627
* The attributes that should be hidden for serialization.
2728
*
28-
* @var array<int, string>
29+
* @var list<string>
2930
*/
3031
protected $hidden = [
3132
'password',

artisan

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Illuminate\Foundation\Application;
45
use Symfony\Component\Console\Input\ArgvInput;
56

67
define('LARAVEL_START', microtime(true));
@@ -9,7 +10,9 @@ define('LARAVEL_START', microtime(true));
910
require __DIR__.'/vendor/autoload.php';
1011

1112
// Bootstrap Laravel and handle the command...
12-
$status = (require_once __DIR__.'/bootstrap/app.php')
13-
->handleCommand(new ArgvInput);
13+
/** @var Application $app */
14+
$app = require_once __DIR__.'/bootstrap/app.php';
15+
16+
$status = $app->handleCommand(new ArgvInput);
1417

1518
exit($status);

composer.json

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
{
2+
"$schema": "https://getcomposer.org/schema.json",
23
"name": "laravel/laravel",
34
"type": "project",
45
"description": "The skeleton application for the Laravel framework.",
5-
"keywords": ["laravel", "framework"],
6+
"keywords": [
7+
"laravel",
8+
"framework"
9+
],
610
"license": "MIT",
711
"require": {
812
"php": "^8.2",
9-
"guzzlehttp/guzzle": "^7.2",
10-
"laravel/framework": "^11.0",
11-
"laravel/tinker": "^2.9"
13+
"laravel/framework": "^12.0",
14+
"laravel/tinker": "^2.10.1"
1215
},
1316
"require-dev": {
14-
"driftingly/rector-laravel": "^1.0",
17+
"driftingly/rector-laravel": "^2.0",
1518
"fakerphp/faker": "^1.23",
19+
"laravel/pail": "^1.2.2",
1620
"laravel/pint": "^1.13",
17-
"laravel/sail": "^1.26",
21+
"laravel/sail": "^1.41",
1822
"mockery/mockery": "^1.6",
19-
"nunomaduro/collision": "^8.0",
20-
"phpunit/phpunit": "^11.0",
21-
"rector/rector": "^1.0",
22-
"spatie/laravel-ignition": "^2.4"
23+
"nunomaduro/collision": "^8.6",
24+
"pestphp/pest": "^3.8",
25+
"pestphp/pest-plugin-laravel": "^3.1"
2326
},
2427
"autoload": {
2528
"psr-4": {
@@ -49,6 +52,10 @@
4952
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
5053
"@php artisan migrate --graceful --ansi"
5154
],
55+
"dev": [
56+
"Composer\\Config::disableProcessTimeout",
57+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"npm run dev\" --names='server,queue,vite'"
58+
],
5259
"setup": [
5360
"composer install",
5461
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"",

0 commit comments

Comments
 (0)