/**
  * Remove the specified resource from storage.
  *
  * @param Station $station
  *
  * @throws \Exception
  * @internal param int $id
  * @return Response
  */
 public function destroy(Station $station)
 {
     $station->delete();
     return redirect()->route('company.stations.index');
 }
Ejemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  Station $station
  * @return \Illuminate\Http\Response
  */
 public function destroy(Station $station)
 {
     //
     $station->delete();
     return Redirect::route('stations.index')->with('message', 'Station deleted.');
 }