qcod / laravel-gamify

Gamify your Laravel app with Reputation Points & Achievements Badges support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use without Badge If your app doesn't need Badges you should just use HasReputations trait instead of Gamify.

smta2017 opened this issue · comments

when i replace "Gamify" with "HasReputations" trait in user model to us Reputations only it give to me issue because it asking for
"Call to undefined method App\User::syncBadges()"
please help

I run into the same problem. You can "fix" this by adding the syncBadges method into the model you are the using the HasReputations trait.

class User extends Authenticatable
{
    use HasReputations;    

    public function syncBadges($user = null)
    {
    }
}