/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit($id) { // Get the resource if it has not been provided by the child class if (!$this->resource->getKey()) { $this->resource = $this->resource->findOrFail($id); } $this->layout->subtitle = _('Edit'); return $this->loadView(__FUNCTION__, $this->resource->getFillableLabels()); }