芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Models/TaskNote.php
$mentionNote * @property-read int|null $mention_note_count * @property-read \Illuminate\Database\Eloquent\Collection
$mentionUser * @property-read int|null $mention_user_count * @property-read \Illuminate\Database\Eloquent\Collection
$mentionNote * @property-read \Illuminate\Database\Eloquent\Collection
$mentionUser * @mixin \Eloquent */ class TaskNote extends BaseModel { protected $with = ['user']; public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id')->withoutGlobalScope(ActiveScope::class); } public function task(): BelongsTo { return $this->belongsTo(Task::class, 'task_id'); } public function mentionUser(): BelongsToMany { return $this->belongsToMany(User::class, 'mention_users')->withoutGlobalScope(ActiveScope::class)->using(MentionUser::class); } public function mentionNote(): HasMany { return $this->hasMany(MentionUser::class, 'task_note_id'); } }