封禁处理
This commit is contained in:
parent
e4ccc4ae32
commit
fb8e832c1f
@ -36,6 +36,7 @@ public function index(Request $request)
|
|||||||
if (Auth::check()) {
|
if (Auth::check()) {
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
if ($user->banned_at !== null) {
|
if ($user->banned_at !== null) {
|
||||||
|
$user->tokens()->delete();
|
||||||
return redirect()->route('banned');
|
return redirect()->route('banned');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user