Snapshot of main at 9f39a6e1e (2026-11-02)
This commit is contained in:
commit
6ccf1792d7
2580 files changed
+1040202
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
// app/Http/Middleware/SetActiveGuard.php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class SetActiveGuard
|
||||
{
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (session()->has('active_guard')) {
|
||||
Auth::shouldUse(session('active_guard'));
|
||||
}
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user