Files
alrahma_sunday_school_api/app/Models/AdminNotificationSubject.php
T
2026-03-05 12:29:37 -05:00

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');
}
}