Exemplo n.º 1
0
 public function postEmployeeAddressNew(CreateAddressRequest $request, $employeeId)
 {
     $this->authorize('edit_employee_contact_details');
     $address = $this->employeeRepository->createAddress($request->all(), $employeeId);
     return $this->printPartial(view('employees::partials.address', ['employee' => $this->employeeRepository->findEmployee($employeeId), 'address' => $address]), trans('employees::address.address_created'));
 }
 public function attributes()
 {
     $createRequest = new CreateAddressRequest();
     return $createRequest->attributes();
 }