Exemplo n.º 1
0
 protected function updateDepartmentAndStatus($request)
 {
     $employee = Employee::create($request->all());
     $employee->update(['status' => 'active', 'department' => Station::whereStation($request->station)->first()->department]);
     return $employee;
 }
Exemplo n.º 2
0
 /**
  * @param $station
  */
 public function delete($station)
 {
     Station::whereStation($station)->delete();
 }