1 year ago

seperate fields in laravel select form

Posted 1 year ago by Thameera

$states=TagList::all(); in controller i retrieve all elements and pass it to view i can use in basic html like Select a service... @foreach ($states as $service) {{ $service->name }} @endforeach but how can i seperate this in laravel select form {!!Form::select('name[]', $states->name, null, ['class' => 'form-control', 'placeholder'=>'Select a blog category','id'=>'name'])! it shows error also i need other seperations

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