travel/service/app/model/Announcements.php

11 lines
244 B
PHP
Raw Normal View History

2024-07-29 10:19:40 +08:00
<?php
namespace app\model;
class Announcements extends base
{
protected $table = 'announcements';
public function adminInfo() {
return $this->belongsTo(Admins::class, 'admin_id')->visible(['name','username','avatar']);
}
}