Skip to content

Commit

Permalink
Add middleware to web to save session
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored Dec 23, 2024
1 parent ae853be commit 1366055
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,6 @@ protected function registerMiddleware($middleware)
{
$kernel = $this->app[Kernel::class];
$kernel->pushMiddleware($middleware);
$kernel->appendMiddlewareToGroup('web', $middleware);
}
}

0 comments on commit 1366055

Please sign in to comment.