initial commit

This commit is contained in:
2026-06-06 10:05:39 +07:00
commit b22608adbc
1577 changed files with 641460 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class request extends Model
{
use HasFactory;
protected $fillable = [
'nama', 'handphone', 'email', 'nik', 'kategori', 'tujuan', 'status', 'keterangan', 'created_by_id', 'operation_id',
];
protected $nullable = ['operation_id'];
public function operation()
{
return $this->belongsTo(Operation::class);
}
public function createdBy()
{
return $this->belongsTo(User::class, 'created_by_id');
}
}