Created
April 26, 2016 12:37
-
-
Save davidhemphill/a1c7df528511d3ce4663fbe5263e7b88 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Billing; | |
use Laravel\Cashier\Cashier as LaravelCashier; | |
class Cashier extends LaravelCashier | |
{ | |
/** | |
* The current currency. | |
* | |
* @var string | |
*/ | |
protected static $currency = 'eur'; | |
/** | |
* The current currency symbol. | |
* | |
* @var string | |
*/ | |
protected static $currencySymbol = '€'; | |
/** | |
* The custom currency formatter. | |
* | |
* @var callable | |
*/ | |
protected static $formatCurrencyUsing = 'customCurrencyFormat'; | |
/** | |
* The custom currency formatter. | |
* | |
* @param int $amount | |
*/ | |
protected static function customCurrencyFormat($amount) | |
{ | |
// return your custom format here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment