Flarum\Core\DiscussionState::user PHP Method

user() public method

Define the relationship with the user that this state is for.
public user ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo
    public function user()
    {
        return $this->belongsTo('Flarum\\Core\\User', 'user_id');
    }