Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/app/Models/PropertyUnitTenant.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class PropertyUnitTenant extends Model { use HasFactory; protected $table = 'property_unit_tenant'; protected $fillable = [ 'property_id', 'unit_id', 'tenant_user_id', 'from_date', 'end_date', 'status', ]; protected $dates = ['from_date', 'end_date']; public function property() { return $this->belongsTo(Property::class, 'property_id'); } public function unit() { return $this->belongsTo(Unit::class, 'unit_id'); } public function tenant() { return $this->belongsTo(User::class, 'tenant_user_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка