/** * Display a listing of the resource. * * @return Response */ public function index() { $articles = Article::with('users')->where('user_id', '=', 1)->paginate(5); return view('articles.index')->with('articles', $articles); }