Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shindakioku/request-hydrator


https://github.com/shindakioku/request-hydrator

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Request-Hydrator

```php
'required|string',
'email' => 'required|email'
];
}
}
```

```php
requestHydrator = $requestHydrator;
}

public function create()
{
return $this->requestHydrator->queries(new CreateUser)
->left(fn($validationErrors) => ...)
->right(fn(CreateUser $user) => $this->register->execute($user));
}
}
```

--------------------

```php