Тёмный

Consuming External api in Laravel 

Code with Luqman
Подписаться 406
Просмотров 13 тыс.
50% 1

This is a full tutorial explaining how you can fetch data from external api using Laravel 10 or any other version of Laravel. fetching the data from external api and then saving it into data base and then displaying it to the user interface. #laravel10 #consuming api in laravel #laraveltutorial

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@jhop6623
@jhop6623 Год назад
Hey, FYI looks like the API is slightly different now. The answer_a, ..b and..c are in an answers group so you need to use something slightly different if anyone is getting an error foreach($questions as $q) { $question = new Question(); $question->question = $q->question; $answers=$q->answers; $question->answer_a = $answers->answer_a; $question->answer_b = $answers->answer_b; $question->answer_c = $answers->answer_c; $question->save(); }
@codewithluqman
@codewithluqman Год назад
Thanks for reporting the change
@habibi9440
@habibi9440 8 месяцев назад
Thank you bro
@mukangangugi9930
@mukangangugi9930 9 месяцев назад
What of a case where the API is not open. Authenticating the api using a token or an apiKey
@ashbelmasemo127
@ashbelmasemo127 Год назад
Good stuff brother..keep the works
@codewithluqman
@codewithluqman 11 месяцев назад
Thanks. 😇
@poojanalure
@poojanalure 7 месяцев назад
thank you sir
@codewithluqman
@codewithluqman 7 месяцев назад
Welcome
Далее
Laravel and External APIs: Get Data with HTTP Client
6:36
Express v5 Is HERE
10:44
Просмотров 19 тыс.
Laravel 8 Tutorial - HTTP Client
17:28
Просмотров 26 тыс.
Laravel: Create Public API with Cache and Rate Limits
12:18