changed username to slug

This commit is contained in:
Doar Mihai
2026-05-30 23:47:32 +03:00
parent ece3070676
commit bdb4457e77
15 changed files with 77 additions and 46 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
@extends('layouts.app')
@section('title', 'Your Library vs ' . ($user->username ?? $user->name) . ' — GameLog')
@section('title', 'Your Library vs ' . ($user->slug ?? $user->name) . ' — GameLog')
@section('content')
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10"
@@ -8,12 +8,12 @@
{{-- Header --}}
<div class="mb-8">
<a href="{{ route('users.show', $user->username) }}"
<a href="{{ route('users.show', $user->slug) }}"
class="text-sm text-slate-500 hover:text-slate-300 transition-colors mb-2 inline-block">
← {{ $user->username ?? $user->name }}'s profile
← {{ $user->slug ?? $user->name }}'s profile
</a>
<h1 class="text-2xl font-bold text-white">
Your Library vs <span class="text-purple-400">{{ $user->username ?? $user->name }}</span>'s Library
Your Library vs <span class="text-purple-400">{{ $user->slug ?? $user->name }}</span>'s Library
</h1>
</div>