public function refresh()
    {
        $response = $this->api->get($this->url());
        $this->data = (array) $response->data;

        return $this;
    }
public function refresh()
    {
        $response = $this->api->get($this->url());
        $this->data = (array) $response->data;

        return $this;
    }
public function refresh ( ) { $ response = $ this -> api -> get ( $ this -> url ( ) ) ; $ this -> data = ( array ) $ response -> data ; return $ this ; }
Makes a GET request and refreshes the local data with up-to-date info.

@return $this
Makes a GET request and refreshes the local data with up - to - date info .