This commit is contained in:
Adrian Hopek
2022-04-08 12:42:24 +02:00
parent 4af0482a93
commit 6506855bba
50 changed files with 581 additions and 196 deletions

View File

@@ -25,14 +25,20 @@ class UserRequest extends FormRequest
];
}
public function data(): array
public function userData(): array
{
return [
"email" => $this->get("email"),
"role" => $this->get("role"),
];
}
public function profileData(): array
{
return [
"first_name" => $this->get("firstName"),
"last_name" => $this->get("lastName"),
"email" => $this->get("email"),
"position" => $this->get("position"),
"role" => $this->get("role"),
"employment_form" => $this->get("employmentForm"),
"employment_date" => $this->get("employmentDate"),
];