public function favorites($class = __CLASS__)
    {
        return $this->morphedByMany($class, config('follow.morph_prefix'), config('follow.followable_table'))
                    ->wherePivot('relation', '=', Follow::RELATION_FAVORITE)
                    ->withPivot('followable_type', 'relation', 'created_at');
    }
public function favorites($class = __CLASS__)
    {
        return $this->morphedByMany($class, config('follow.morph_prefix'), config('follow.followable_table'))
                    ->wherePivot('relation', '=', Follow::RELATION_FAVORITE)
                    ->withPivot('followable_type', 'relation', 'created_at');
    }
public function favorites ( $ class = __CLASS__ ) { return $ this -> morphedByMany ( $ class , config ( 'follow.morph_prefix' ) , config ( 'follow.followable_table' ) ) -> wherePivot ( 'relation' , '=' , Follow :: RELATION_FAVORITE ) -> withPivot ( 'followable_type' , 'relation' , 'created_at' ) ; }
Return item favorites.

@param string $class

@return \Illuminate\Database\Eloquent\Relations\BelongsToMany
Return item favorites .