qcod / laravel-gamify

Gamify your Laravel app with Reputation Points & Achievements Badges support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get subject form Reputation Model

atmonshi opened this issue · comments

hi again :)

I start to use this and it's amazing how easy to setup .
one thing I noticed is when Get reputation history with auth()->user()->reputations
I can access the payee details , but not the subject .

the $reputation->subject always return null .

I think the relation is missing or I am missing some thing ?

public function subject() { return $this->belongsTo($this->subject_type, 'subject_id'); }