/** * Show the form for creating a new resource. * * @return Response */ public function create() { $types = PersonType::all(); return view('admin.person_create', compact('types')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { PersonType::destroy($id); Session::flash('flash_message', 'PersonType successfully deleted!'); return redirect('persontype'); }