29 lines
561 B
PHP
29 lines
561 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class AdminNotificationSubject extends BaseModel
|
|
{
|
|
protected $table = 'admin_notification_subjects';
|
|
|
|
protected $fillable = [
|
|
'admin_id',
|
|
'subject',
|
|
'created_at',
|
|
'updated_at',
|
|
];
|
|
|
|
// legacy uses created_at / updated_at
|
|
public $timestamps = true;
|
|
|
|
protected $casts = [
|
|
'admin_id' => 'integer',
|
|
];
|
|
|
|
// Optional relationship (if your admins are in users table)
|
|
public function admin()
|
|
{
|
|
return $this->belongsTo(User::class, 'admin_id');
|
|
}
|
|
}
|