Skip to content

get subject form Reputation Model #7

@atmonshi

Description

@atmonshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions