💲
Laravel Payable
  • Laravel Payable
  • Introduction
  • Installation
  • Usages
  • Fiscal
  • Payment
  • Payment History
  • Payment Gateway
  • Payabel Facade
  • Configurations
Powered by GitBook
On this page
  • user
  • fiscal
  • currentYear
  • isLeapYear
  • receipt_no
  • credit
  • debit
  • balance
  • auditByLastDays
  • auditByLastMonths
  • auditByFiscal
  • auditByFiscalMonth

Payabel Facade

user

Returns User model for payable class

Payable::user();

fiscal

Returns current active fiscal

Payable::fiscal();

currentYear

Return current native year

Payable::currentYear();

isLeapYear

Return if the given year is a leap year or not.

Payable::isLeapYear()

receipt_no

Returns payment receipt no structure

Payable::receipt_no()

credit

credit(?Carbon $date = null): float

Returns payment credit total

Payable::credit();
Payable::credit(\Carbon\Carbon::today());

debit

debit(?Carbon $date = null): float

Returns payment debit total

Payable::debit();
Payable::debit(\Carbon\Carbon::today());

balance

balance(?Carbon $date = null): float

Returns payment balance total

Payable::balance();
Payable::balance(\Carbon\Carbon::today());

auditByLastDays

auditByLastDays($limit = 7, $date_format = 'Y-m-d'): array

Returns credit, debit, and balance of each last $limit days

Payable::auditByLastDays();
Payable::auditByLastDays(20); // Default 7

auditByLastMonths

auditByLastMonths(int $limit = 12, string $date_format = 'Y-m'): array

Returns credit, debit, and balance of each last $limit month

Payable::auditByLastMonths();
Payable::auditByLastMonths(20); // Default 12

auditByFiscal

auditByFiscal(?Fiscal $fiscal): array

Returns credit, debit, and balance of given fiscal

Payable::auditByFiscal();
Payable::auditByFiscal(Fiscal::first()); // Default current fiscal

auditByFiscalMonth

auditByFiscalMonth(?Fiscal $fiscal = null): array

Returns credit, debit, and balance of given fiscal by fiscal duration month

Payable::auditByFiscalMonth();
Payable::auditByFiscalMonth(Fiscal::first()); // Default current fiscal
PreviousPayment GatewayNextConfigurations

Last updated 1 year ago