/** * Show the form for editing the specified resource. * * @param int $id * @throws Symfony\Component\HttpKernel\Exception\NotFoundHttpException * @return Response */ public function edit($id) { $cms = Cms::newInstance(['control' => 'edit', 'action' => Lang::get('content::messages.edit')]); $category = $this->getCategory(); $article = Article::find($id); if ($article) { return view('newmarkets\\content::admin.article.edit', compact('article', 'category', 'cms')); } throw new NotFoundHttpException(); }