From 0d2180d9b488219e570d354d11ec3782f1b46024 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 2 Aug 2022 18:38:01 -0400 Subject: add a chart --- routes/web.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'routes/web.php') diff --git a/routes/web.php b/routes/web.php index 9396c11..c7be55c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -30,7 +30,10 @@ Route::get('/', function () { $rates = new Collection(); foreach($ratesRaw as $r) { - $rates->push(Rates::find($r->id)); + $rate = Rates::find($r->id); + if($rate->currency->name != "Bitcoin") { + $rates->push($rate); + } } return view('welcome', ['currencies' => Currency::all(), 'rates' => $rates]); }); -- cgit v1.2.3