Esempio n. 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy(Driver $driver)
 {
     $driver->delete();
     return redirect()->route('admin.drivers.index')->withWaning("Los datos del chofer {$driver->full_name} han sido eliminados!");
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  Driver $driver
  * @return \Illuminate\Http\Response
  */
 public function destroy(Driver $driver)
 {
     $driver->delete();
     Session::flash('flash_message', 'Driver deleted successfully!');
     return Redirect::route('driver.index')->with('message', 'Driver deleted.');
 }