-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
laravel-data & Livewire #669
Conversation
Would you consider adding validation too? If possible, it would also be awesome if we can validate nested data. Something along the lines of: public AlbumData $album;
public function save()
{
$this->album->validate();
//
} Our plan is to use data objects instead of Livewire's form objects so we can reuse it in our upcoming API. |
At the moment, no. Since we do not support validating objects themselves, only payloads creating data objects can be valdiated. |
Add DataCollectionSynth
@rubenvanassche how would data validation work when this is implemented? Will there be no validation or are you validating data before the data object gets updated? |
No validation, it is at the moment technically not possible to provide correct validation objects. You'll need to implement it yourself. |
A set of changes to make laravel-data and Livewire work better together, very wip