role === 'worker') { return $next($request); } return redirect('/'); } }