12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Repositories\Models\Info;
- use App\Repositories\Models\Base\Admin;
- use App\Repositories\Models\Model;
- class Notice extends Model
- {
- /**
- * @var string
- */
- protected $table = 'info_notices';
- protected $guarded = [];
- /**
- * The attributes excluded from the model's JSON form.
- *
- * @var array
- */
- protected $hidden = [];
- public function admin()
- {
- return $this->belongsTo(Admin::class)->select(['id', 'name', 'username']);
- }
- }
|