Skip to content

Commit 8770126

Browse files
committed
Upgrade to Laravel 10
1 parent b04ed98 commit 8770126

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

app/Http/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Kernel extends HttpKernel
5353
*
5454
* @var array<string, class-string|string>
5555
*/
56-
protected $routeMiddleware = [
56+
protected $middlewareAliases = [
5757
'auth' => \App\Http\Middleware\Authenticate::class,
5858
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
5959
'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,

app/Providers/AuthServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class AuthServiceProvider extends ServiceProvider
2424
*/
2525
public function boot()
2626
{
27-
$this->registerPolicies();
28-
2927
ResetPassword::createUrlUsing(function ($user, string $token) {
3028
return env('SPA_URL') . '/reset-password?token=' . $token;
3129
});

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^8.0.2",
11+
"php": "^8.1",
1212
"guzzlehttp/guzzle": "^7.2",
13-
"laravel/fortify": "^1.13",
14-
"laravel/framework": "^9.19",
15-
"laravel/sanctum": "^3.0",
16-
"laravel/tinker": "^2.7",
13+
"laravel/fortify": "^1.16",
14+
"laravel/framework": "^10.0",
15+
"laravel/sanctum": "^3.2",
16+
"laravel/tinker": "^2.8",
1717
"silber/bouncer": "^1.0"
1818
},
1919
"require-dev": {
20-
"barryvdh/laravel-ide-helper": "^2.12",
20+
"barryvdh/laravel-ide-helper": "^2.13",
2121
"fakerphp/faker": "^1.9.1",
2222
"laravel/pint": "^1.0",
23-
"laravel/sail": "^1.0.1",
23+
"laravel/sail": "^1.18",
2424
"mockery/mockery": "^1.4.4",
25-
"nunomaduro/collision": "^6.1",
26-
"phpunit/phpunit": "^9.5.10",
27-
"spatie/laravel-ignition": "^1.0"
25+
"nunomaduro/collision": "^7.0",
26+
"phpunit/phpunit": "^10.0",
27+
"spatie/laravel-ignition": "^2.0"
2828
},
2929
"autoload": {
3030
"psr-4": {
@@ -70,6 +70,6 @@
7070
"pestphp/pest-plugin": true
7171
}
7272
},
73-
"minimum-stability": "dev",
73+
"minimum-stability": "stable",
7474
"prefer-stable": true
7575
}

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<directory suffix="Test.php">./tests/Feature</directory>
1313
</testsuite>
1414
</testsuites>
15-
<coverage processUncoveredFiles="true">
15+
<coverage>
1616
<include>
1717
<directory suffix=".php">./app</directory>
1818
</include>

0 commit comments

Comments
 (0)