/** * Run the database seeds. * * @return void */ public function run() { DB::table('insurances')->delete(); $insurance = new Insurance(['name' => 'Bear Claw']); $insurance->save(); $insurance = new Insurance(['name' => 'InstaSure']); $insurance->save(); $insurance = new Insurance(['name' => 'CareUSA']); $insurance->save(); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Insurance::destroy($id); Session::flash('flash_message', 'Insurance successfully deleted!'); return redirect('insurance'); }