/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $article = Article::where('id', $id)->first(); $directory = Article::getImagesPath($article->image_dir); return ["article" => $article, "images" => $directory]; }