lavina
6 months ago
505
1
Laravel

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')}}
        <br>
        {{ Form::select('product', $products) }}
    </div>
    {{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.