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