Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

select tag in laravel collective

public function add(){
   $results = Category::pluck('category_name','id');
  return view('admin/add-post',compact('results'));
}

{!! Form::select('id', $results, '',['class' => 'form-control','placeholder'=>'Please Select Category']) !!}
 
PREVIOUS NEXT
Tagged: #select #tag #laravel #collective
ADD COMMENT
Topic
Name
3+1 =