/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $content_areas = ContentArea::lists('name', 'id'); $pages = Page::lists('name', 'id'); $article = Article::findOrFail($id); return view('articles.edit', compact('article', 'pages', 'content_areas')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $pagesAll = Page::all(); $articlesAll = Article::all(); $templatesAll = Template::all(); $contentAreasAll = ContentArea::all(); $content_areas = ContentArea::lists('name', 'id'); $pages = Page::lists('name', 'id'); $article = Article::findOrFail($id); return view('site.edit', compact('article', 'pages', 'content_areas', 'pagesAll', 'articlesAll', 'templatesAll', 'contentAreasAll')); }