aboutsummaryrefslogtreecommitdiff
path: root/routes/web.php
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@fastmailteam.com>2022-08-02 18:38:01 -0400
committerCalvin Morrison <calvin@fastmailteam.com>2022-08-02 18:38:01 -0400
commit0d2180d9b488219e570d354d11ec3782f1b46024 (patch)
tree53aae2ff3b7b2d90878748d1887c87d67d26ad85 /routes/web.php
parentf2aff7518be55da0fd250e04a4bfc1bbbd5a3d0a (diff)
add a chart
Diffstat (limited to 'routes/web.php')
-rw-r--r--routes/web.php5
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]);
});