public function parseShift($acceptDate) { echo $acceptDate."<br>"; try { Shift::create(array('shiftDate'=>$acceptDate)); } catch (\exception $e) { echo "Exception of create order in Shifts <br>"; } /*foreach ($shifts as $shift) { try { //Admin::create(array('name'=>$admin)); } catch (\exception $e) { echo "Exception"; } }*/ }