public function postEmployeeNew(CreateEmployeeDetailsRequest $request) { $this->authorize('create_employee'); $employee = $this->employeeRepository->createEmployee($request->all()); return $this->printRedirect(route('employee.details.edit', $employee->id)); }
public function attributes() { $createRequest = new CreateEmployeeDetailsRequest(); return $createRequest->attributes(); }