#4-public-user-profile

This commit is contained in:
2026-05-12 10:57:21 +08:00
parent 53be5221e9
commit b6c9557f83
42 changed files with 2994 additions and 242 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\View\View;
class AuthorController extends Controller
{
/**
* Display the author's public profile.
*/
public function show(User $user): View
{
$user->load('roles:id,name');
return view('author.show', [
'author' => $user,
]);
}
}