This commit is contained in:
Simon Pocrnjič
2025-09-28 00:30:18 +02:00
parent 7227c888d4
commit a913cfc381
44 changed files with 2123 additions and 587 deletions
+29
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;
use Illuminate\Database\Eloquent\SoftDeletes;
class CaseObject extends Model
{
use HasFactory;
use SoftDeletes;
protected $table = 'objects';
protected $fillable = [
'reference',
'name',
'description',
'type',
'contract_id',
];
public function contract(): BelongsTo
{
return $this->belongsTo(Contract::class, 'contract_id');
}
}