samedi 28 juillet 2018

Laravel formbuilder how can i get accept and multiple attributes into the element

I use http://kristijanhusak.github.io/laravel-form-builder/ and i want some extra attributes for type file

How can achieve that?

Try:

->add('image',
    'file',
    [
        'multiple' => true,
        'accept' =>"image/jpg, image/gif",
        'label' => 'Upload your image'
    ])

result:

<input class="form-control" name="image" id="image" type="file">

I want:

<input class="form-control" name="image" id="image" type="file" accept="image/jpg, image/gif" multiple>



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2uUdTX0
via IFTTT

Aucun commentaire:

Enregistrer un commentaire