示例#1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $record = Disability::find($id);
     $record->delete();
     Session::flash('message', "Record deleted");
     return Redirect::to('/disability');
 }
示例#2
0
 public function run()
 {
     DB::table('disabilities')->delete();
     Disability::create(array('title' => 'Blind', 'user_id' => 1));
     Disability::create(array('title' => 'Delf', 'user_id' => 1));
 }