diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index bcee262..fce1458 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -2,12 +2,15 @@ namespace App\Http\Controllers; +use App\Models\User; use Illuminate\Http\Request; class ProfileController extends Controller { public function show(string $slug) { + $user = User::where('slug', $slug)->first(); + return view('profile.show', compact('user')); } } diff --git a/resources/views/profile/profile.blade.php b/resources/views/profile/profile.blade.php index f251ff9..5539379 100644 --- a/resources/views/profile/profile.blade.php +++ b/resources/views/profile/profile.blade.php @@ -25,7 +25,10 @@