I want to save response from api and re_used with next request from user in php laravel framework ..without save to database?

Viewed 34
enter code here

enter code here` $response = Http::withHeaders($headers)->post($URL, $postdata);

1 Answers

Just save the response in session, example:

Session::put('sessionName', $response);

And if you want to call it you can use :

Session::get('sessionName');
Related