mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-09 22:44:48 +00:00
Laravel 13 upgrade, updates and fixes
This commit is contained in:
20
app/Http/Middleware/CustomerGuest.php
Normal file
20
app/Http/Middleware/CustomerGuest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class CustomerGuest
|
||||
{
|
||||
/**
|
||||
* Guest-only routes for the customer guard (same behavior as {@see CustomerRedirectIfAuthenticated}).
|
||||
*
|
||||
* @param Closure(Request): (Response) $next
|
||||
*/
|
||||
public function handle(Request $request, Closure $next, ?string $guard = null): Response
|
||||
{
|
||||
return app(CustomerRedirectIfAuthenticated::class)->handle($request, $next, $guard);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user