illuminatech / validation-composite

Allows uniting of several validation rules into single one for easy re-usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not sure on this?

shez1983 opened this issue · comments

why cant we create custom RULES a feature laravel already provides - we can then use these anywhere we want just like urs.

You can.
CompositeRule is just a particular rule of such, which allows quick creation of validation logic re-using the ones already provided by Laravel.
Whether to use this library or not is up to you. If you can't get any benefit from it - don't use it.

Nice package, even I think this functionality should be in Laravel's core

I am glad you like it.
If you wish it belonging to the Laravel core, you can suggest it at https://github.com/laravel/ideas