Laravel 5.1 Form - 'files' => True
I use Laravel HTML to create form but I have problem, so in creating form I have: {!! Form::open(['url'=>'vocuhers','files' => 'true','enctype'=>'multipart/form-data']) !!
Solution 1:
Your syntax is wrong. The following works for me:
{{Form::open(array('url' => 'your_url', 'method' => 'post', 'files' => true))}}
Solution 2:
Change url
with route
as below.
{{!! Form::open(['route'=>'vocuhers','class'=>'your_class','files'=>true]) !!}}
Solution 3:
{!! Form::open(['url'=>'vocuhers','files' => 'true','enctype'=>'multipart/form-data']) !!}
change It to
{!! Form::open(['url'=>'vocuhers','files' =>true,'enctype'=>'multipart/form-data']) !!}
as Markinson said
Solution 4:
Change it to like this:
{!! Form::attributes(['enctype'=>"multipart/form-data"])open(['url'=>'vocuhers']) !!}
Post a Comment for "Laravel 5.1 Form - 'files' => True"