TDoG-Skin/app/Http/Middleware/CheckUserVerified.php

14 lines
279 B
PHP
Raw Permalink Normal View History

2024-08-17 18:43:48 +08:00
<?php
namespace App\Http\Middleware;
class CheckUserVerified
{
public function handle($request, \Closure $next)
{
abort_if(option('require_verification') && !auth()->user()->verified, 403, trans('auth.check.verified'));
return $next($request);
}
}