public function getMentionsAttribute()
    {
        $users = new Collection([], 'id');

        foreach ($this->attributes['mentions'] as $mention) {
            $users->push($this->factory->create(User::class, $mention, true));
        }

        return $users;
    }
public function getMentionsAttribute()
    {
        $users = new Collection([], 'id');

        foreach ($this->attributes['mentions'] as $mention) {
            $users->push($this->factory->create(User::class, $mention, true));
        }

        return $users;
    }
public function getMentionsAttribute ( ) { $ users = new Collection ( [ ] , 'id' ) ; foreach ( $ this -> attributes [ 'mentions' ] as $ mention ) { $ users -> push ( $ this -> factory -> create ( User :: class , $ mention , true ) ) ; } return $ users ; }
Returns the mention attribute.

@return Collection The users that were mentioned.
Returns the mention attribute .