コード例 #1
0
 /**
  * Remove the specified repair from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     if (!Sentry::getUser()) {
         return Redirect::route('sessions.create');
     }
     Repair::destroy($id);
     return Redirect::route('repairs.index');
 }
コード例 #2
0
 /**
  * Remove the specified repair from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Repair::destroy($id);
     return Redirect::route('repairs.index');
 }