Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
2d82b0d566
  1. 4
      app/Http/Controllers/SearchController.php

4
app/Http/Controllers/SearchController.php

@ -99,9 +99,9 @@ class SearchController extends Controller
}; };
$i++; $i++;
}; };
$results['mashes']=$masharr;
$result['mashes']=$masharr;
$hopadditions = Hopaddition::where('beer_id', $result->beer_id)->distinct('timing')->get(); $hopadditions = Hopaddition::where('beer_id', $result->beer_id)->distinct('timing')->get();
$results['hopadditions'] = $hoppaditions;
$result['hopadditions'] = $hoppadditions;
} }
break; break;
case('brewerie'): case('brewerie'):

Loading…
Cancel
Save