After creating and manipulating with the monetary object, you'd like to print the money out to somewhere.
You can use one of the following ways:
$money = money('12345000');
// Use toString()
$string = $money->toString(); // "$ 1 234.5"
// Explicitly assign object to string
$string = "Your balance is {$money}"; // "Your balance is $ 1 234.5"
In Blade:
<p>Balance: {{ $money }}</p>
👀 See here for full details.
📌 Back to the contents.