Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/app/Models/Event.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Event extends Model { use HasFactory; protected $guarded = []; public const EVENT_TYPE = [ 'moving_in' => 'Moving In', 'moving_out' => 'Moving Out', // 'cleaning' => 'Cleaning', 'maintenance' => 'Maintenance', 'late_rent' => 'Late Rent', 'lease_signing' => 'Lease Signing', 'property_view' => 'Property View', 'key_return' => 'Key Return', ]; public const COLOR_CODE = [ 'moving_in' => '#4D5E8057', 'moving_out' => '#80800057', 'cleaning' => '#FFFF0057', 'maintenance' => '#80800057', 'late_rent' => '#80000057', 'lease_signing' => '#80808057', 'property_view' => '#A52A2A57', 'key_return' => '#C0C0C057', ]; public const STATUS = [ 'in-progress' => 'In Progress', 'cancelled' => 'Cancelled', 'complete' => 'Complete', ]; public function event_tenant() { return $this->belongsTo(User::class,'tenant_id'); } public function event_landlord() { return $this->belongsTo(User::class,'landlord_id'); } public function event_property() { return $this->belongsTo(Property::class,'property_id'); } // Define the relationship with the Category model public function category() { return $this->belongsTo(Category::class); } // Define the relationship with the Unit model public function unit() { return $this->belongsTo(Unit::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка