/** * Display a listing of the resource. * * @return Response */ public function index() { return Inventario::select('id', 'faixa', 'v_1', 'v_2', 'emol')->orderBy('v_1')->get(); }
private function getInv($value) { return Inventario::select('inventarios.faixa', 'inventarios.emol')->searchInventario($value)->first(); }