Skip to content

Instantly share code, notes, and snippets.

@davidhemphill
Created April 26, 2016 12:37
Show Gist options
  • Save davidhemphill/a1c7df528511d3ce4663fbe5263e7b88 to your computer and use it in GitHub Desktop.
Save davidhemphill/a1c7df528511d3ce4663fbe5263e7b88 to your computer and use it in GitHub Desktop.
<?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