first commit

This commit is contained in:
2026-05-14 09:08:09 +08:00
commit 919b86c8ec
111 changed files with 14085 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PermohonanItem extends Model
{
use HasFactory;
protected $fillable = [
'permohonan_id', 'item', 'kuantiti', 'harga_anggaran', 'jumlah',
'status_item', 'catatan_pelaksana',
];
protected function casts(): array
{
return ['harga_anggaran' => 'decimal:2', 'jumlah' => 'decimal:2'];
}
public function permohonan()
{
return $this->belongsTo(Permohonan::class, 'permohonan_id');
}
}