public function attributes() { $createRequest = new CreateEmployeeDepartmentRequest(); return $createRequest->attributes(); }
public function postEmployeeDepartmentNew(CreateEmployeeDepartmentRequest $request) { return $this->printPartial(view('employees::partials.employee_department', ['employee_department' => $this->employeeRepository->createEmployeeDepartment($request->all())]), trans('employees::employee_department.employee_department_created')); }