Skip to content

Instantly share code, notes, and snippets.

View ortzinator's full-sized avatar

Brian Ortiz ortzinator

View GitHub Profile
@iamroi
iamroi / MoneyIntegerCast.php
Last active December 3, 2021 11:11
MoneyIntegerCast - For package https://github.com/cknow/laravel-money
<?php
namespace App\Casts;
use Cknow\Money\Money;
use Cknow\Money\MoneyCast;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use InvalidArgumentException;
class MoneyIntegerCast extends MoneyCast implements CastsAttributes