26 lines
520 B
PHP
26 lines
520 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\BaseModel;
|
|
|
|
class AdminNotificationSubject extends BaseModel
|
|
{
|
|
protected $table = 'admin_notification_subjects';
|
|
protected $primaryKey = 'id';
|
|
public $timestamps = true;
|
|
const CREATED_AT = 'created_at';
|
|
const UPDATED_AT = 'updated_at';
|
|
protected $fillable = [
|
|
'admin_id',
|
|
'subject',
|
|
'created_at',
|
|
'updated_at',
|
|
];
|
|
|
|
public function admin()
|
|
{
|
|
return $this->belongsTo(User::class, 'admin_id');
|
|
}
|
|
}
|