Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

fakestore api data in laravel

//https://laravel.com/docs/9.x/http-client#guzzle-options

Route::get('/', function () {

 $items = IlluminateSupportFacadesHttp::get("https://fakestoreapi.com/products");
dd($items->collect());
return $items;

});
 
PREVIOUS NEXT
Tagged: #fakestore #api #data #laravel
ADD COMMENT
Topic
Name
3+4 =