alexeymezenin / laravel-best-practices

Laravel best practices
11.44k stars 2.38k forks source link

Array for validation rule values #130

Closed Tpojka closed 2 years ago

Tpojka commented 2 years ago

It is better to write validation rule values as array than as piped string. First reason is to have consistency regardless we have to involve custom rule class or not.

alexeymezenin commented 2 years ago

Hi Tpojka. Thanks for the PR but I don't think string validation rules is something terrible. I mean they're concise and readable.