示例#1
0
 public function getInstanceOptions()
 {
     $instances = BonusModel::where("id", "!=", "0")->get();
     $array_dropdown = ['0' => '- select Bonus Instance - '];
     foreach ($instances as $instance) {
         $array_dropdown[$instance->id] = $instance->Name;
     }
     return $array_dropdown;
 }