PHP code example of xitedev / wiretables-money
1. Go to this page and download the library: Download xitedev/wiretables-money library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xitedev / wiretables-money example snippets
use Xite\WiretablesMoney\Columns\MoneyColumn;
return collect([
MoneyColumn::make('amount')
->showSign()
->displayIf(fn ($row) => $row->amount->isPositive()),
]);
use Xite\WiretablesMoney\Fields\MoneyField;
use Xite\WiretablesMoney\Rules\MoneyRule;
use Xite\WiretablesMoney\Rules\MoneyNotZeroRule;
return collect([
MoneyField::make('amount', __('fields.amount'))
->
bash
php artisan vendor:publish --tag="wiretables-money-views"