6 months ago

Getting values from a blade form select

Posted 6 months ago by lavina

Hello, i am attempting to retireve a selection made on a drop down list. I made the list like this:

    {!! Form::open(['action' => 'Api\[email protected]', 'method' => 'POST', 'enctype' => 'multipart/form-data']) !!}
    <div class="form-group">
        {{Form::label('product', 'Product')}}
        {{ Form::select('product', $products) }}
    {{Form::submit('Submit', ['class'=>'btn btn-primary', ''])}}
    {!! Form::close() !!}

But when i process it, the request only contains the id of the list itself which is useless for me, how can i get the text of the choice made?

Please sign in or create an account to participate in this conversation.