Laravel: Display data in DropDown from database
问题 I was developing a project with Laravel and want to use dropdownlist and populate it with data from database please help. Here is the code that I use: Controller: public function create() { $items = Income::pluck('name', 'id'); return view ('IncomeExpense.create'); } View: <div class="form-group"> {{Form::label('', 'Category')}} {{Form::select('IncomeExpense',null, $items,['class'=>'form-control', 'placeholder'=>'Choose category'])}} </div> 回答1: First of all, you have an error in your