laravel-currency
laravel-currency copied to clipboard
Call for Opinion: Method that only returns currency symbol
I'm planning to send a PR that will return currency symbol.
Possible client code might look like this:
currency()->getCurrencySymbol()
which outputs one of the relevant currency symbol like: $
, €
.
I came across this idea while using bootstrap form method to place a prepend on input.
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="number" class="form-control" placeholder="Price" aria-label="Price">
</div>