Thameera
1 year ago
996
13
Laravel

use key and value in laravel form as in html select

Posted 1 year ago by Thameera

'''

{!!Form::label("Supplier name")!!} {!!Form::select('sup_id', $supp, null, ['class' => 'form-control', 'placeholder'=>'Select supplier name'])!!} {!!$errors->first('sup_name')!!} {!!Form::label("Bill/Invoice")!!} {!!Form::text('bill',null, ['class' => 'form-control','required' => 'required', 'placeholder' => 'Enter the Bill/Invoice'])!!} {!!$errors->first('bill')!!} '''

this is my laravel select form but i use basic html to populate dropdown based on previous dropdown now page shows error when submit as ''' Select supplier: --- Select State --- @foreach ($supp as $key => $value) {{ $value }} @endforeach Select bill no: --- Select State --- '''

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