예제 #1
0
 public function finish(Request $request, $id)
 {
     $repair = Repair::findOrFail($id);
     $repair->update(['rep_status' => 'تم']);
     return redirect('maintainance/repairs');
 }
 public function finish(Request $request, $id)
 {
     /*  if (Gate::denies('maintain')) {
           abort(403, 'هذا الإجراء ليس من صلاحياتك');
         }*/
     $repair = Repair::findOrFail($id);
     $repair->update(['rep_status' => 'تم']);
     return redirect('maintainance/repairs/waiting');
 }