|Notification newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|Notification query() * @method static \Illuminate\Database\Eloquent\Builder|Notification whereAction($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereActorId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereItemId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereItemType($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereProfileId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereReadAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|Notification withoutTrashed() * * @mixin \Eloquent */ class Notification extends Model { use SoftDeletes; protected $guarded = []; protected function casts(): array { return [ 'deleted_at' => 'datetime', ]; } public function actor() { return $this->belongsTo(Profile::class, 'actor_id', 'id'); } public function profile() { return $this->belongsTo(Profile::class, 'profile_id', 'id'); } public function item(): MorphTo { return $this->morphTo(); } public function status() { return $this->belongsTo(Status::class, 'item_id', 'id'); } public function tag() { return $this->hasOne(MediaTag::class, 'item_id', 'id'); } }