01 - Simple example: File from Form Request - Manage Filename, Extension, Folders
We found 18 results for "form requests".
In your CRUD classes, it's good practice to use FormRequest classes for validation. Usually people create one for store() method and one for update() - something like StoreUserRequest and UpdateUserRequest. But maybe it's possible to combine them into one?
By default, Livewire doesn’t allow to use of Form Request classes for validation. But, as with many things, there is a workaround.
My personal experience with checking roles/permissions in the Form Requests. Would you agree?
I want to give you a strong argument on why validation logic in the controller is a violation of DRY and SOLID principles. Would you agree?
A quick demo of dynamic validation.
Files in the example:
Files in the example:
Files in the example:
Files in the example:
Files in the example:
Files in the example:
Files in the example:
Files in the example:
Files in the example:
Files in the example: