wip
This commit is contained in:
@@ -17,7 +17,7 @@ class RedirectIfUserPhoneIsVerfied
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
if (Auth::check() && ! is_null($request->user()?->phone_verified_at)) {
|
||||
return redirect()->route(config()->string('module.base-auth.redirect_path'));
|
||||
return redirect(config()->string('module.base-auth.redirect_path'));
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
||||
Reference in New Issue
Block a user