Currency controller currency method #mvb7xp

This commit is contained in:
Cüneyt Şentürk
2021-07-06 23:51:29 +03:00
parent 48e3d8d7f2
commit 430f0e3372
2 changed files with 1 additions and 21 deletions

View File

@ -226,25 +226,6 @@ class Currencies extends Controller
return response()->json($response);
}
public function currency()
{
$json = new \stdClass();
$code = request('code');
if ($code) {
// Get currency object
$currency = Currency::where('code', $code)->first();
// it should be integer for amount mask
$currency->precision = (int) $currency->precision;
$json = (object) $currency;
}
return response()->json($json);
}
public function config()
{
$json = new \stdClass();