Files
InvoiceShelf/app/Http/Controllers/V1/Admin/ExchangeRate/GetSupportedCurrenciesController.php
2024-01-29 04:46:01 -06:00

26 lines
626 B
PHP

<?php
namespace InvoiceShelf\Http\Controllers\V1\Admin\ExchangeRate;
use Illuminate\Http\Request;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Models\ExchangeRateProvider;
use InvoiceShelf\Traits\ExchangeRateProvidersTrait;
class GetSupportedCurrenciesController extends Controller
{
use ExchangeRateProvidersTrait;
/**
* Handle the incoming request.
*
* @return \Illuminate\Http\Response
*/
public function __invoke(Request $request)
{
$this->authorize('viewAny', ExchangeRateProvider::class);
return $this->getSupportedCurrencies($request);
}
}