diff options
author | Calvin Morrison <calvin@fastmailteam.com> | 2022-08-02 18:38:01 -0400 |
---|---|---|
committer | Calvin Morrison <calvin@fastmailteam.com> | 2022-08-02 18:38:01 -0400 |
commit | 0d2180d9b488219e570d354d11ec3782f1b46024 (patch) | |
tree | 53aae2ff3b7b2d90878748d1887c87d67d26ad85 /routes/web.php | |
parent | f2aff7518be55da0fd250e04a4bfc1bbbd5a3d0a (diff) |
add a chart
Diffstat (limited to 'routes/web.php')
-rw-r--r-- | routes/web.php | 5 |
1 files changed, 4 insertions, 1 deletions
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]); }); |