Hello there,
I'm experiancing issues when using 'files'=>true in one of my view. Let's start with the code of my view:
@if(isset($somethingID))
{!! Form::open(array('action' => array('Backend\TestController@updateSomething', $somethingID, 'files'=> true))) !!}
@else
{!! Form::open(array('action' => 'Backend\TestController@storeSomething', 'files'=> true)) !!}
@endif
The scenario is that I want to edit or upload a picture. The else-block work fine and everything is okay.
But when I want to edit the picture, the first Form::open will be used, it doesn't work. There is no error message or something similar. He just don't uploads the image.
I also tried this but without luck.
{!! Form::open(array('action' => array('Backend\TestController@updateSomething', $somethingID, 'files'=> true, enctype="multipart/form-data"))) !!}
This really bugs me because the only difference is that I need to pass a variable.. nothing more. And on the official docs I don't find a hint. I even don't get why Taylor deletes all the usefull sections in the docs for "Forms" and stuff like that.
I appreciate any help!