added seo for Persons

This commit is contained in:
F4ilji
2025-05-25 19:01:00 +05:00
parent 9c22e7601c
commit 7d6b75b708
6 changed files with 49 additions and 4 deletions
@@ -16,12 +16,12 @@ class PersonController extends Controller
public function show(string $slug)
{
$personData = Cache::remember(
CacheKeys::USER_PREFIX->value . $slug,
now()->addHours(24),
fn() => User::with(['userDetail', 'departments_work.faculty', 'departments_teach.faculty', 'divisions', 'faculties'])
->where('slug', $slug)
->whereHas('userDetail')
->firstOrFail()
);