atom
Implement Pending Approval Page For Newly Signed up Users
Yes, I've tried that. This is what my middleware "CheckedApprovedUser" looks like
public function handle(Request $request, Closure $next): Response
{
if (Auth::user() && Auth::user()->user_approved_at) {
return $next($request);
}
return redirect()->route('/pending-approval');
}
However, I'm getting a "Route [/pending-approval] not defined.". But when I manually navigate to "localhost:8000/pending-approval", it renders my view.
My view is located in the resources/views/pending-approval.blade.php23 replies