cod-glo / cgaccounting
dev-main
2024-09-29 18:25 UTC
Requires
- php: ^7.3|^8.0
- illuminate/database: ^8.0|^9.0|^10.0
- illuminate/support: ^8.0|^9.0|^10.0
- mpdf/mpdf: dev-development
- nesbot/carbon: ^2.0
This package is auto-updated.
Last update: 2024-09-29 18:25:56 UTC
README
使用方法
use CodGlo\CGAccounting\Services\AccountingService; class SomeController extends Controller { protected $accountingService; public function __construct(AccountingService $accountingService) { $this->accountingService = $accountingService; } public function transferCredit() { $result = $this->accountingService->credit('Cash', 'Bank', 1000); // Handle the result... } public function transferDebit() { $result = $this->accountingService->debit('Bank', 'Cash', 500); // Handle the result... } }