$response = Http::withToken(Auth::user()->magento_access_token)->get('' . Auth::user()->magento_base_url . 'rest/V1/categories/'); $response->throw();