AXN-Informatique / laravelcollective-form-to-raw-html

Provides Artisan command to replace LaravelCollective Form:: syntax by raw HTML
MIT License
2 stars 0 forks source link

{!! form::open file=>true !!} Is not handled #1

Closed plutotom closed 1 month ago

plutotom commented 1 month ago

Hey so far the tool has been such a life saver, but in checking over some of my blades, i notice that the file argument is not being converted to enctype="multipart/form-data". I do not know much about the process and impact, but our forms that have file uploads will need this

plutotom commented 1 month ago

Input

{!! Form::open(['action' => 'AdminUtilsController@postUpdatepromo', 'id' => 'promo-form', 'files' => true]) !!}

Output

<form
        method="POST"
        enctype="multipart/form-data"
        action="AdminUtilsController@postUpdatepromo"
        id="promo-form"
    >@csrf 

Should be

<form
        method="POST"
        enctype="multipart/form-data"
        action="AdminUtilsController@postUpdatepromo"
        id="promo-form"
        enctype="multipart/form-data"
    >@csrf
plutotom commented 1 month ago

So sorry for the noise, it does handle it! It simply put it higher in the list of attributes. I have been looking at these blades for far to long...