Skip to content

Commit 119a2f5

Browse files
committed
Update framework version and dependencies
1 parent 90bfbd9 commit 119a2f5

27 files changed

+2482
-848
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules
2+
/public/build
23
/public/hot
34
/public/storage
45
/storage/*.key
@@ -8,6 +9,7 @@
89
.phpunit.result.cache
910
Homestead.json
1011
Homestead.yaml
12+
auth.json
1113
npm-debug.log
1214
yarn-error.log
1315
/.idea

.styleci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ php:
55
finder:
66
not-name:
77
- index.php
8-
js:
9-
finder:
10-
not-name:
11-
- webpack.mix.js
8+
js: true
129
css: true

app/Infrastructure/Laravel/Exceptions/Handler.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,26 @@
77

88
class Handler extends ExceptionHandler
99
{
10+
/**
11+
* A list of exception types with their corresponding custom log levels.
12+
*
13+
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
14+
*/
15+
protected $levels = [
16+
//
17+
];
18+
1019
/**
1120
* A list of the exception types that are not reported.
1221
*
13-
* @var array<int, class-string<Throwable>>
22+
* @var array<int, class-string<\Throwable>>
1423
*/
1524
protected $dontReport = [
1625
//
1726
];
1827

1928
/**
20-
* A list of the inputs that are never flashed for validation exceptions.
29+
* A list of the inputs that are never flashed to the session on validation exceptions.
2130
*
2231
* @var array<int, string>
2332
*/

app/Infrastructure/Laravel/Kernel/Http.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class Http extends HttpKernel
3333
\App\Infrastructure\Laravel\Middleware\EncryptCookies::class,
3434
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
3535
\Illuminate\Session\Middleware\StartSession::class,
36-
// \Illuminate\Session\Middleware\AuthenticateSession::class,
3736
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
3837
\App\Infrastructure\Laravel\Middleware\VerifyCsrfToken::class,
3938
\Illuminate\Routing\Middleware\SubstituteBindings::class,
@@ -56,11 +55,12 @@ class Http extends HttpKernel
5655
protected $routeMiddleware = [
5756
'auth' => \App\Infrastructure\Laravel\Middleware\Authenticate::class,
5857
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
58+
'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,
5959
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
6060
'can' => \Illuminate\Auth\Middleware\Authorize::class,
6161
'guest' => \App\Infrastructure\Laravel\Middleware\RedirectIfAuthenticated::class,
6262
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
63-
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
63+
'signed' => \App\Infrastructure\Laravel\Middleware\ValidateSignature::class,
6464
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
6565
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
6666
];
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace App\Infrastructure\Laravel\Middleware;
4+
5+
use Illuminate\Routing\Middleware\ValidateSignature as Middleware;
6+
7+
class ValidateSignature extends Middleware
8+
{
9+
/**
10+
* The names of the query string parameters that should be ignored.
11+
*
12+
* @var array<int, string>
13+
*/
14+
protected $except = [
15+
// 'fbclid',
16+
// 'utm_campaign',
17+
// 'utm_content',
18+
// 'utm_medium',
19+
// 'utm_source',
20+
// 'utm_term',
21+
];
22+
}

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88
"email": "[email protected]"
99
}
1010
],
11-
"keywords": ["framework", "laravel", "hibit"],
11+
"keywords": ["framework", "laravel", "hibit", "DDD"],
1212
"homepage": "https://www.hibit.dev",
1313
"license": "MIT",
1414
"require": {
1515
"php": "^8.0.2",
1616
"guzzlehttp/guzzle": "^7.2",
1717
"laravel/framework": "^9.2",
18-
"laravel/sanctum": "^2.14.1",
18+
"laravel/sanctum": "^3.0",
1919
"laravel/tinker": "^2.7"
2020
},
2121
"require-dev": {
2222
"fakerphp/faker": "^1.9.1",
23+
"laravel/pint": "^1.0",
2324
"laravel/sail": "^1.0.1",
2425
"mockery/mockery": "^1.4.4",
2526
"nunomaduro/collision": "^6.1",
@@ -61,7 +62,10 @@
6162
"config": {
6263
"optimize-autoloader": true,
6364
"preferred-install": "dist",
64-
"sort-packages": true
65+
"sort-packages": true,
66+
"allow-plugins": {
67+
"pestphp/pest-plugin": true
68+
}
6569
},
6670
"minimum-stability": "dev",
6771
"prefer-stable": true

0 commit comments

Comments
 (0)