Skip to content

Commit

Permalink
middleware fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lahirulhr committed Jan 25, 2022
1 parent 164789d commit 21e15c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

Route::get('laravel-auth-switch/login-as/{key}', \Visanduma\LaravelAuthSwitch\SwitchController::class)
->withoutMiddleware([])
->middleware('web')
->name('login-as');
2 changes: 1 addition & 1 deletion src/SwitchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SwitchController extends Controller
{
public function __invoke($key)
{
$this->middleware('web');

$model = config('auth-switch.model');
$model = new $model();
$users = config('auth-switch.accounts', []);
Expand Down

0 comments on commit 21e15c3

Please sign in to comment.