I have a text field like
{!! Form::textarea('representive[address_1]' ,null ,['class' =>'textboxlong form-control','style'=>'height:60px;']) !!}
In my form. And when I try to get its value in my controller but it comes null. What I try is
$adress = Request::get('representive.0.address_1');
I also tried some other ways but could not end up with a proper solution. How can I get the value of this field? Any help would be appreciated.
The
Request::get()method is implemented bySymfony\Component\HttpFoundation\Requestwhich theIlluminate\Http\Requestclass extends. This method does not parse the string parameter passed using the dot notation as Laravel does. You should instead be using theRequest::inputwhich does:As an alternative you can also use the
Inputfacade and doInput::get().