When I generate a new entity, it creates the validator in app/Validators which host the validation rules for creating and updating a model. However, with the controller, it generates a Laravel Request class in app/Http/Requests which hosts a set of validation rules.
Is there any way to have these validation rules follow the Single Source of Truth principal?
When I generate a new entity, it creates the validator in
app/Validators
which host the validation rules for creating and updating a model. However, with the controller, it generates a Laravel Request class inapp/Http/Requests
which hosts a set of validation rules.Is there any way to have these validation rules follow the Single Source of Truth principal?