App\Http\Controllers\API\LegacyController::getUserRecent PHP Method

getUserRecent() public method

public getUserRecent ( )
    public function getUserRecent()
    {
        $limit = min((int) Request::input('limit', 10), 50);
        if (present(Request::input('u'))) {
            $scores = $this->_getScores(false, $limit);
        } else {
            $scores = null;
        }
        return $this->_transformScores($scores->orderBy('date', 'desc'), true);
    }