It would be great to create transformer from inline validation rules to array definition.
F.e.
'required|exists:' . Model::class . ',attribute|string'
can be transformed to
[
'required',
'exists:' . Model::class . ',attribute',
'string',
]
which is more beautiful, readable and editable.
Furthermore,
'exists:' . Model::class . ',attribute'
can be transformed to
\Illuminate\Validation\Rule::exists(Model::class, 'attribute')
It would be great to create transformer from inline validation rules to array definition.
F.e.
can be transformed to
which is more beautiful, readable and editable.
Furthermore,
can be transformed to