public function user()
    {
        $userClassName = Config::get('auth.model');
        if (is_null($userClassName)) {
            $userClassName = Config::get('auth.providers.users.model');
        }

        return $this->belongsTo($userClassName);
    }
public function user()
    {
        $userClassName = Config::get('auth.model');
        if (is_null($userClassName)) {
            $userClassName = Config::get('auth.providers.users.model');
        }

        return $this->belongsTo($userClassName);
    }
public function user ( ) { $ userClassName = Config :: get ( 'auth.model' ) ; if ( is_null ( $ userClassName ) ) { $ userClassName = Config :: get ( 'auth.providers.users.model' ) ; } return $ this -> belongsTo ( $ userClassName ) ; }
Rating belongs to a user.

@return User
Rating belongs to a user .