diff --git a/.env.example b/.env.example index 4309780..cf8d5db 100644 --- a/.env.example +++ b/.env.example @@ -12,6 +12,8 @@ APP_FAKER_LOCALE=en_US APP_MAINTENANCE_DRIVER=file # APP_MAINTENANCE_STORE=database +PHP_CLI_SERVER_WORKERS=4 + BCRYPT_ROUNDS=12 LOG_CHANNEL=stack @@ -47,11 +49,11 @@ REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_MAILER=log +MAIL_SCHEME=null MAIL_HOST=127.0.0.1 MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null -MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS="hello@example.com" MAIL_FROM_NAME="${APP_NAME}" diff --git a/.gitignore b/.gitignore index cad1e8d..4f94eca 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /public/hot /public/storage /storage/*.key +/storage/pail /vendor .env .env.backup @@ -11,9 +12,11 @@ .phpunit.result.cache Homestead.json Homestead.yaml -auth.json npm-debug.log yarn-error.log +/auth.json /.fleet /.idea +/.nova /.vscode +/.zed diff --git a/app/Models/User.php b/app/Models/User.php index 69f656f..e69a309 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -17,7 +17,7 @@ class User extends Authenticatable implements FilamentUser /** * The attributes that are mass assignable. * - * @var array + * @var list */ protected $fillable = [ 'name', @@ -28,7 +28,7 @@ class User extends Authenticatable implements FilamentUser /** * The attributes that should be hidden for serialization. * - * @var array + * @var list */ protected $hidden = [ 'password', diff --git a/composer.json b/composer.json index baf0121..7d58a95 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "diglactic/laravel-breadcrumbs": "^9.0", "filament/filament": "^3.2.50", "jeffgreco13/filament-breezy": "^2.2", - "laravel/framework": "^11.0", + "laravel/framework": "^11.31", "laravel/sanctum": "^4.0", "laravel/tinker": "^2.9", "livewire/livewire": "^3.3", diff --git a/config/filesystems.php b/config/filesystems.php index c5f244d..3d671bd 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -32,8 +32,10 @@ 'local' => [ 'driver' => 'local', - 'root' => storage_path('app'), + 'root' => storage_path('app/private'), + 'serve' => true, 'throw' => false, + 'report' => false, ], 'public' => [ @@ -42,6 +44,7 @@ 'url' => env('APP_URL').'/storage', 'visibility' => 'public', 'throw' => false, + 'report' => false, ], 's3' => [ @@ -54,6 +57,7 @@ 'endpoint' => env('AWS_ENDPOINT'), 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 'throw' => false, + 'report' => false, ], ], diff --git a/config/mail.php b/config/mail.php index df13d3d..756305b 100644 --- a/config/mail.php +++ b/config/mail.php @@ -39,10 +39,10 @@ 'smtp' => [ 'transport' => 'smtp', + 'scheme' => env('MAIL_SCHEME'), 'url' => env('MAIL_URL'), 'host' => env('MAIL_HOST', '127.0.0.1'), 'port' => env('MAIL_PORT', 2525), - 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'timeout' => null, diff --git a/config/session.php b/config/session.php index f0b6541..ba0aa60 100755 --- a/config/session.php +++ b/config/session.php @@ -32,7 +32,7 @@ | */ - 'lifetime' => env('SESSION_LIFETIME', 120), + 'lifetime' => (int) env('SESSION_LIFETIME', 120), 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false), diff --git a/public/.htaccess b/public/.htaccess index 3aec5e2..b574a59 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -9,6 +9,10 @@ RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + # Handle X-XSRF-Token Header + RewriteCond %{HTTP:x-xsrf-token} . + RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}] + # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ diff --git a/storage/app/.gitignore b/storage/app/.gitignore index 8f4803c..fedb287 100644 --- a/storage/app/.gitignore +++ b/storage/app/.gitignore @@ -1,3 +1,4 @@ * +!private/ !public/ !.gitignore diff --git a/storage/app/private/.gitignore b/storage/app/private/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/private/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore