/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $model = new \App\Article(); $article = $model->getArticle(['id' => $id]); $portal = new \App\Portal(); $portals = $portal->getPortals(); return view('admin/publish', ['article' => $article, 'portals' => $portals]); }