Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/app/Models/NoticeBoardUser.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; class NoticeBoardUser extends BaseModel { use HasFactory; public function employees(): BelongsTo { return $this->belongsTo(Notice::class, 'user_id', 'id')->where('type', 'employee'); } public function clients(): BelongsTo { return $this->belongsTo(Notice::class, 'user_id', 'id')->where('type', 'client'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка