Skip to content

Commit

Permalink
chore: fixes for sanctum 4.0 upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Penner <[email protected]>
  • Loading branch information
matthewpi committed Oct 21, 2024
1 parent 6f748a6 commit d65d55d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,4 @@ public function boot(): void
{
Sanctum::usePersonalAccessTokenModel(ApiKey::class);
}

public function register(): void
{
Sanctum::ignoreMigrations();
}
}
3 changes: 2 additions & 1 deletion config/sanctum.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
*/

'middleware' => [
'verify_csrf_token' => Pterodactyl\Http\Middleware\VerifyCsrfToken::class,
'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class,
'encrypt_cookies' => Pterodactyl\Http\Middleware\EncryptCookies::class,
'verify_csrf_token' => Pterodactyl\Http\Middleware\VerifyCsrfToken::class,
],
];

0 comments on commit d65d55d

Please sign in to comment.