|Notification newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification query() * @method static \Illuminate\Database\Eloquent\Builder|Notification whereActionText($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereCreatedByUserId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereExpiresAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereFranchiseeId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereMessage($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereNotificationType($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereOriginId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereOriginTable($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification wherePriority($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUnitId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUrl($value) * @mixin \Eloquent */ class Notification extends Model { use HasFactory; protected $table = 'notifications'; protected $guarded = [ 'id', // Add more fields that shouldn't be edited here ]; protected $casts = [ 'expires_at' => 'datetime', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; // Relationships public function recipients(): \Illuminate\Database\Eloquent\Relations\HasMany { return $this->hasMany(NotificationRecipient::class, 'notification_id'); } public function creator(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(User::class, 'created_by_user_id'); } // Business Logic Methods // Custom Finders // Query Scopes }