'integer', ]; /** * Get the parent activity model (order etc). */ public function activity(): MorphTo { return $this->morphTo(); } public function user(): HasOne { return $this->hasOne(User::class, 'ID', 'user_id') ->select(['ID', 'display_name', 'user_email']); } }