get subject form Reputation Model
atmonshi opened this issue · comments
php coder commented
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'); }