value . md5($slug); [$person, $seo] = Cache::remember($cacheKey, now()->addHours(24), function () use ($slug) { $person = User::query()->with(['userDetail', 'departments_work.faculty', 'departments_teach.faculty', 'divisions', 'faculties', 'seo']) ->where('slug', $slug) ->firstOrFail(); $seo = $this->seoPageProvider->getSeoForModel($person); return [ new ClientFullInfoPersonResource($person), $seo ]; }); return Inertia::render('Client/Persons/Show', compact('person', 'seo')); } }