Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get subject form Reputation Model #7

Closed
atmonshi opened this issue Mar 14, 2019 · 0 comments
Closed

get subject form Reputation Model #7

atmonshi opened this issue Mar 14, 2019 · 0 comments

Comments

@atmonshi
Copy link

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'); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant