Esempio n. 1
0
 public function label()
 {
     $charactor = Charactor::all();
     $scene = Scene::all();
     $object = Object::all();
     // dd('man');
     $price = Price::all();
     return Response::json(array('errCode' => 0, 'message' => '返回标签', '_char' => $charactor, 'scene' => $scene, 'object' => $object, 'price' => $price));
 }
Esempio n. 2
0
 public function label()
 {
     $charactor = Charactor::all();
     $scene = Scene::all();
     $object = Object::all();
     // dd('man');
     $price = Price::all();
     return View::make('pc.search')->with(array('errCode' => 0, 'message' => '返回标签', '_char' => $charactor, 'scene' => $scene, 'object' => $object, 'price' => $price));
 }
Esempio n. 3
0
 public static function priceFormArray($notNull = null)
 {
     $obj = Price::all();
     if ($notNull == null) {
         $array[''] = '- Không chọn';
     }
     if (count($obj) > 0) {
         foreach ($obj as $value) {
             $array[$value->id] = priceArrangeString($value->min, $value->max);
         }
     }
     return $array;
 }