1 <?php namespace BookStack\Http\Controllers;
3 use BookStack\Auth\UserRepo;
5 class UserProfileController extends Controller
8 * Show the user profile page
10 public function show(UserRepo $repo, string $slug)
12 $user = $repo->getBySlug($slug);
14 $userActivity = $repo->getActivity($user);
15 $recentlyCreated = $repo->getRecentlyCreated($user, 5);
16 $assetCounts = $repo->getAssetCounts($user);
18 return view('users.profile', [
20 'activity' => $userActivity,
21 'recentlyCreated' => $recentlyCreated,
22 'assetCounts' => $assetCounts