andersao / andersao/l5-repository

Prettus\Validator versus FormRequest ?

Open
#553 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
4.2k
Forks
880
PR merge metrics
No merged PRs in 30d

Description

I would have used Prettus\Validator but currently i don't want to have to add code to catch validationexception in controllers and/or Service classes

while using formrequest is capable of both encapsulating validation rules and managing form re-display with errors "magically"

how do you deal with ?

_it is highly possible that i miss something, i read several times l5-repository documentation validation part and laravel-validator doc_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.