mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2025-01-19 06:57:24 +08:00
14 lines
279 B
PHP
Executable File
14 lines
279 B
PHP
Executable File
<?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);
|
|
}
|
|
}
|