feat: initial commit

This commit is contained in:
JP
2024-08-05 08:04:35 +08:00
parent 0f3c3db73b
commit 140e821e0c
194 changed files with 14509 additions and 254 deletions

29
app/Models/Balance.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Balance extends Model
{
use HasFactory;
protected $guarded = [];
public function account(): BelongsTo
{
return $this->belongsTo(Account::class);
}
/**
* Get the ledger that owns the Balance
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function ledger(): BelongsTo
{
return $this->belongsTo(Ledger::class);
}
}