Ejemplo n.º 1
0
 public function topics($id)
 {
     $user = User::findOrFail($id);
     $topics = Topic::whose($user->id)->recent()->paginate(15);
     return View::make('users.topics', compact('user', 'topics'));
 }
Ejemplo n.º 2
0
 public function topics()
 {
     $topics = Topic::whose(Auth::user()->id)->recent()->limit(10)->get();
     return View::make('account.topics', compact('topics'));
 }