/** * 获取编辑视图 * @param $model * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ private function getEditView($model) { return view('property.customize.edit', ['model' => $model, 'formats' => Utils::getResFormats(), 'cats' => PropertyBiz::getCats()]); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { PropertyBiz::delete($id); return Redirect::to('properties'); }