user()->tokenCan('vote')) { return response()->json([ 'error' => 'Unauthenticated.' ], 401); } return $next($request); } }