Skip to content

Commit c61c566

Browse files
authored
Laravel 10 (#21)
* Require PHP 8.1 * Upgrade laravel/framework to ^10.0 * Upgrade spatie/laravel-ignition to ^2.0 * Change minimum-stability * Update composer.lock * Update AuthServiceProvider.php * Update language files * Update Kernel.php * Fix code style issues
1 parent b9300db commit c61c566

File tree

8 files changed

+208
-204
lines changed

8 files changed

+208
-204
lines changed

app/Console/Kernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Kernel extends ConsoleKernel
1010
/**
1111
* Define the application's command schedule.
1212
*
13-
* @param \Illuminate\Console\Scheduling\Schedule $schedule
1413
* @return void
1514
*/
1615
protected function schedule(Schedule $schedule)

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/Http/Middleware/RedirectIfAuthenticated.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class RedirectIfAuthenticated
1212
/**
1313
* Handle an incoming request.
1414
*
15-
* @param \Illuminate\Http\Request $request
1615
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
1716
* @param string|null ...$guards
1817
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse

app/Providers/AuthServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class AuthServiceProvider extends ServiceProvider
2323
*/
2424
public function boot()
2525
{
26-
$this->registerPolicies();
27-
2826
//
2927
}
3028
}

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "A starter project for Laravel apps using Inertia and Vue.",
55
"license": "MIT",
66
"require": {
7-
"php": "^8.0",
7+
"php": "^8.1",
88
"guzzlehttp/guzzle": "^7.5",
99
"inertiajs/inertia-laravel": "^0.6",
10-
"laravel/framework": "^9.51",
10+
"laravel/framework": "^10.0",
1111
"laravel/sanctum": "^3.2",
1212
"laravel/tinker": "^2.8",
1313
"spatie/laravel-permission": "^5.9",
@@ -22,7 +22,7 @@
2222
"pestphp/pest-plugin-faker": "^1.0",
2323
"pestphp/pest-plugin-laravel": "^1.4",
2424
"pestphp/pest-plugin-parallel": "^1.2",
25-
"spatie/laravel-ignition": "^1.6",
25+
"spatie/laravel-ignition": "^2.0",
2626
"spatie/ray": "^1.36"
2727
},
2828
"autoload": {
@@ -87,6 +87,6 @@
8787
"pestphp/pest-plugin": true
8888
}
8989
},
90-
"minimum-stability": "dev",
90+
"minimum-stability": "stable",
9191
"prefer-stable": true
9292
}

0 commit comments

Comments
 (0)