Пример #1
0
 public function topics($id)
 {
     $user = User::findOrFail($id);
     $topics = Topic::whose($user->id)->recent()->paginate(15);
     return view('users.topics', compact('user', 'topics'));
 }