Answers for "Laravel Http client throw exception if request is not successful"

PHP
0

Laravel Http client throw exception if request is not successful

$response = Http::withToken(Auth::user()->magento_access_token)->get('' . Auth::user()->magento_base_url . 'rest/V1/categories/');
        $response->throw();
Posted by: Guest on October-07-2021

Code answers related to "Laravel Http client throw exception if request is not successful"

Browse Popular Code Answers by Language