mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-08 12:07:42 +08:00
refactor
This commit is contained in:
parent
0b169df679
commit
64dea61ec9
@ -3,12 +3,13 @@
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RejectBannedUser
|
||||
{
|
||||
public function handle($request, \Closure $next)
|
||||
public function handle(Request $request, \Closure $next)
|
||||
{
|
||||
if ($request->is('auth/logout')) {
|
||||
if ($request->route()->getName() === 'auth.logout') {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user