actor->name ?: $this->actor->username ?: 'Someone'; return [ 'type' => 'story_liked', 'story_id' => (int) $this->story->id, 'story_title' => $this->story->title, 'actor_id' => (int) $this->actor->id, 'actor_name' => $this->actor->name, 'actor_username' => $this->actor->username, 'message' => $label . ' liked your story', 'url' => route('stories.show', ['slug' => $this->story->slug]), ]; } }