Hello,
In @mzur 's Uniform, how can I access the error caused by a specific field in the form? The snippet seems to loop them all. Something like:
<input name="media" type="text" value="<?= $form->old('media') ?>">
<?php if ( $form->error('media') ): ?>
// only the error declared for 'media'
<?php endif ?>
It works if I use array_values :
array_values($form->error('media'))[0]
I can also use toolkit’s a::first();
a::first($form->error('media'))
But is there a more Uniform’ish solution ?
Thank you!