public function getTags() { $tags = Tags::select(DB::raw('id as value, tag_name as text'))->get(); return response()->json($tags); }