예제 #1
0
 public function __construct(Rate $rate, $abbr)
 {
     $this->rate = $rate->where('to', '=', $abbr)->first();
 }
예제 #2
0
 public function homepage(Request $request, Rate $rate)
 {
     $currencies = $rate->all();
     return view('index')->with('currencies', $currencies);
 }