public function brands_select() { $brands = Brand::lists('nombre', 'id'); return response()->json($brands); }
public function validarNoRepit($text) { $brands = Brand::where('nombre', '=', $text)->orWhere('shortname', '=', $text)->first(); return $brands; }