currency fields

This commit is contained in:
denisdulici
2017-12-09 16:24:18 +03:00
parent a35da4337b
commit e9d2f79fd7
11 changed files with 226 additions and 11 deletions

View File

@ -212,4 +212,20 @@ class Currencies extends Controller
return response()->json($json);
}
public function config()
{
$json = new \stdClass();
$code = request('code');
if ($code) {
$currency = config('money.' . $code);
$currency['symbol_first'] = $currency['symbol_first'] ? 1 : 0;
$json = (object) $currency;
}
return response()->json($json);
}
}