diff options
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]); }); |