middleware('permission:settings.general'); } public function index(): JsonResponse { return response()->json(Setting::all()); } }