composer composer require amrshawky/laravel-currency route use App\Http\Controllers\DemoController; Route::get('/currency',[DemoController::class,'index'])->name('currency'); controller filled("currency_from")){ $convertedObj = Currency::convert() ->from($request->get('currency_from')) ->to($request->get('currency_to')) ->amount($request->get('amount')); if($request->filled('date')){ $convertedObj = $convertedObj->date($request->get('date')); } $converted = $convertedObj->get(); } return view('currency',compact('converted')); } } blade
Currency Exchange Rates
@csrf
Select Currency
Australia Dollar
Bangladeshi Taka
Euro
Great Britain Pound
India Rupee
Japan Yen
USA Dollar
To
Select Currency
Australia Dollar
Bangladeshi Taka
Euro
Great Britain Pound
India Rupee
Japan Yen
USA Dollar
Amount
Date
Converted Amount
Submit