/** * Show the form for editing the specified resource. * * @param Model $model * @return Response */ public function edit(Model $model) { JavaScript::put(['tags' => Tag::lists('tag')]); $tags = implode(', ', $model->tags->lists('tag')); $this->layout->content = View::make('admin.edit')->withTags($tags)->withModel($model); }