Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

26
app/Models/Property.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use App\Observers\PropertyObserver;
use Illuminate\Database\Eloquent\Attributes\ObservedBy;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
#[ObservedBy([PropertyObserver::class])]
class Property extends Model
{
use HasFactory;
public $guarded = [];
public function parent_property()
{
return $this->belongsTo(CustomProperty::class, 'custom_property_id');
}
public function model()
{
return $this->morphTo();
}
}