/** * Author page */ public function authorIndex($id) { $articles_user = Article::where('user_id', $id)->simplePaginate(5); $author = User::find($id); return view('front-end.pages.author', compact('articles_user', 'author')); }