Is therer any ability to extract that validation and still use FormRequest classes?
In FormRequest, you may also restrict some data manipulation in the authorize() method. Is something like this possible using Livewire?
Livewire doesn't support FormRequest classes, unfortunately.
From the docs:
"You might be wondering if you can use Laravel's "FormRequest"s. Due to the nature of Livewire, hooking into the http request wouldn't make sense. For now, this functionality is not possible or recommended."
Is therer any ability to extract that validation and still use FormRequest classes? In FormRequest, you may also restrict some data manipulation in the
authorize()
method. Is something like this possible using Livewire?Livewire doesn't support FormRequest classes, unfortunately.
From the docs: "You might be wondering if you can use Laravel's "FormRequest"s. Due to the nature of Livewire, hooking into the http request wouldn't make sense. For now, this functionality is not possible or recommended."
i am validating my model Product.name but nothing happens,
Unfortunately impossible to answer just from this comment, your situation needs debugging on what you validated in the wrong way.