예제 #1
0
 public function closed()
 {
     $bh_id = \Input::get('id');
     $newValue = \Input::get('data');
     $bh = \App\BusinessHour::whereId($bh_id)->first();
     $bh->close_time = $newValue;
     if ($bh->save()) {
         return \Response::json(array('status' => 1));
     } else {
         return \Response::json(array('status' => 'error', 'msg' => 'could not be updated'));
     }
 }