Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to save data from api to laravel

$res = $gallery->request('GET','https://www.instagram.com/explore/tags/MIZONEDanceBattle/?__a=1');
    $data = json_decode($res->getBody()->getContents(), true);

    $gallery = Gallery::firtsOrCreate([
            'shortcode',
            'thumbnail_src',
        ], $data]); // add $data here
    $gallery->save();
Comment

how to get data from laravel api

[{"id_product":"62mQYOsEcRAZg56b1Y85","Product_Image":"https://firebasestorage.googleapis.com/v0/b/adey-dc43b.appspot.com/o/product_images%2F5d1d8c4a-1a53-4d18-a7ff-30cdc6245fe3?alt=media&token=ab09e791-c0a1-455e-bd37-2b0077924b8e","Business_ID":"uWPVn10xhw8ZVV65FTmz","Product_price":"50","Product_descr":"this book is designed for people who have passion on weitung letter ","Owner_id":"dur03ULzh3UGPqlXfyR9tAfEx2d2","Product_name":"new boook "}]
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress nav menu align right 
Php :: laravel post request page csrf disable 
Php :: php dom get element innerhtml 
Php :: laravel 6 make http request 
Php :: how to remove duplicate data in php 
Php :: like %% inside the string php 
Php :: laravel form validation based on another field value 
Php :: autoload.php 
Php :: delay in php 
Php :: Remove .php extension & Remove trailing slash 
Php :: extend woocommerce user fields edit-account 
Php :: is null php 
Php :: How to Customize WooCommerce Breadcrumb 
Php :: how to use attempt in laravel 
Php :: php conditionals 
Php :: laravel copy row 
Php :: php - = 
Php :: laravel Access to HMLHttpRequest from origin has been blocked by CORS policy: No Access-Control-Allow-Origin 
Php :: The specified module could not be found php 
Php :: php artisan vendor:publish --provider="MaatwebsiteExcelExcelServiceProvider 
Php :: laravel request input default value 
Php :: append in php 
Php :: file upload in laravel 
Php :: wordpress get wp roles 
Php :: laravel adding condition to relation 
Php :: create new record via model in laravel 
Php :: how to add two string in php 
Php :: php tutorial 
Php :: upload image to database laravel 8 
Php :: get array value in php 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =