for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MichaelRubel\StripeIntegration\Behaviors;
use Money\Currency;
trait ConfiguresCashier
{
/**
* Set the Cashier currency.
*
* @param Currency $currency
* @return void
*/
public function setCashierCurrencyAs(Currency $currency): void
config([
'cashier.currency' => $currency->getCode(),
]);
}