コード例 #1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $types = PersonType::all();
     return view('admin.person_create', compact('types'));
 }
コード例 #2
0
 /**
  * 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');
 }