Initial commit - expense
Deploy to VPS (PAT over HTTPS) / deploy (push) Has been cancelled

This commit is contained in:
root
2026-06-01 15:01:03 +07:00
parent 9e9fab4a3f
commit 1c1418f3e0
123 changed files with 18622 additions and 10376 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Transaction extends Model
{
use SoftDeletes;
protected $fillable = [
'cabang_id', 'budget_control_id', 'transaction_date', 'reference_number',
'description', 'amount', 'type', 'category', 'periode_month',
'periode_year', 'created_by'
];
protected $casts = [
'transaction_date' => 'date',
'amount' => 'decimal:2',
];
public function cabang() {
return $this->belongsTo(Cabang::class);
}
}