Laravel 8 tutorial - Http Client

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 66

  • @codestepbystep
    @codestepbystep  2 года назад +7

    Please Support my by Subscribe, Like and comment. Thank you :)

  • @yuripapinian2261
    @yuripapinian2261 3 года назад +10

    I like how you repeat the step of creating a Controller. it really helps

  • @joerodrigo9661
    @joerodrigo9661 3 года назад +1

    Even though your doing it all from scratch again, it helps me to be familiar with the flow. thanks sir

  • @mariakarenseronperalta4463
    @mariakarenseronperalta4463 2 года назад

    very helpful i subscribe

  • @erriada-com
    @erriada-com Год назад

    thanks

  • @freerelax8964
    @freerelax8964 4 года назад +5

    Interview question :
    I think we get the header information by using $collection->header().

    • @masudindeed
      @masudindeed 4 года назад

      $collections->header('Content-Type', 'text/plain');

    • @negi3625
      @negi3625 3 года назад

      @@masudindeed what is API header btw?

    • @neelthakkar4492
      @neelthakkar4492 3 года назад

      $collection->headers() to get all headers data.

  • @engr.naeemullah7019
    @engr.naeemullah7019 2 года назад +1

    Hi sir thanks alot for amazing tutorials! i have one issue i am fetching the data from xml feed of the one wbesit and and want to store that data in my database. i am using HTTP request and follow the same video

  • @yuukich00
    @yuukich00 Год назад

    ありがとう

  • @shindeanita1629
    @shindeanita1629 Год назад

    In index() function pass parameter Request $req then call $req->header() which show the header information.

  • @technicalshyab5509
    @technicalshyab5509 3 года назад

    Amazing tutorial sirrrrr

  • @rishitiwary5847
    @rishitiwary5847 4 года назад

    amazing tutorial its help me alot

  • @tr_boss_official
    @tr_boss_official 4 года назад

    Nice tutorial sir

  • @samm-rawr6441
    @samm-rawr6441 2 года назад

    how can we call api with credentials and sessionID .can u share your video about this?

  • @shammikumar3437
    @shammikumar3437 2 года назад

    how to update data from api if the data is updating after sometime . like stocks prices of other currencies?

  • @ghazalafazal4370
    @ghazalafazal4370 3 года назад

    sir ye tareeka kar edit data k liye use ho sakta ha? hm agar apny tables se edit pay click kren to apny forms ki field me data le k a sakty by this method?

  • @alexbayarov3072
    @alexbayarov3072 3 года назад +1

    Could you please show how to use http::attach() ?

  • @imranshahid2907
    @imranshahid2907 2 года назад

    what is the solution of curl timeout

  • @JasvirSingh-fd6fp
    @JasvirSingh-fd6fp 4 года назад

    Thank you sir

  • @technicalshyab5509
    @technicalshyab5509 3 года назад

    Sir please sir React native full series ka video upload kariye sirrrrr please

  • @yaseen_elolemy
    @yaseen_elolemy 3 года назад

    hey man how can i remove trailing slash after image link because it doesn't load the image with it

  • @adedejiabdulkabir8623
    @adedejiabdulkabir8623 3 года назад +2

    What is the solution to curl error 60

  • @mofumofu3699
    @mofumofu3699 3 года назад

    Sir, how to show relationship data in view?
    because when get data, it not return collection of object
    For example if it return collection of object, usually i always use {{ $post->tags->name }}.
    How to do it? because in this video using code like this: {{ $post['item'] }}
    I'm trying {{ $post['tags'] ['name'] }} but error

  • @sanchitkhurana2238
    @sanchitkhurana2238 3 года назад

    Hi, what we have to do if you have to access only the first value that is page instead of the array data? Can you please help?

  • @dhanushjerryrajen9015
    @dhanushjerryrajen9015 3 года назад

    So how did i find my key for my json data
    For me it doesnt displays any key values

  • @shaifulislam6778
    @shaifulislam6778 3 года назад +1

    how create API url??

  • @najmussaadat7069
    @najmussaadat7069 2 года назад

    font family is not different, one has JSON type header, other is just plain text

  • @nikhilkade3163
    @nikhilkade3163 3 года назад

    Hi Sir How we can use json data directly in php without decoding it

  • @saurabhgaonkar4487
    @saurabhgaonkar4487 4 года назад

    why we use $connection['data'] is data is a implicit keyword or what?

    • @ИгорьАлексеенко-д7з
      @ИгорьАлексеенко-д7з 4 года назад +5

      Response received from request contains a lot of keys, as you can see at 7:48. It has 'page', 'per_page', 'total', 'total_pages' and 'data' keys. We don't need any except for data-key. So we directly use $collection['data'], when we passing parameters into our view.
      By the way, if response (which is instance of Illuminate\Http\Client\Response) came as JSON, you can add ->json() at the end to get iterable array

    • @saurabhgaonkar4487
      @saurabhgaonkar4487 4 года назад

      @@ИгорьАлексеенко-д7з tysm

    • @perialdupont1181
      @perialdupont1181 4 года назад

      @@ИгорьАлексеенко-д7з nice answer guy

  • @tariqkhan5206
    @tariqkhan5206 3 года назад

    From where did you get that Api??

    • @darn2926
      @darn2926 2 года назад

      its on the description

  • @yagnikpatel6349
    @yagnikpatel6349 Год назад

    how can i make api

  • @mzcollection5555
    @mzcollection5555 3 года назад

    What is the answer the interview question?

  • @samimahassan1716
    @samimahassan1716 4 года назад

    hello sir i couldnt find the answer to your question , can you plz write answer for me

  • @phoenixempire3298
    @phoenixempire3298 2 года назад

    extensions details please

  • @haroorzulfqar4984
    @haroorzulfqar4984 3 года назад

    how we create api link???

  • @farhanhaider73
    @farhanhaider73 2 года назад

    getting this error htmlspecialchars(): Argument #1 ($string) must be of type string, GuzzleHttp\Cookie\CookieJar given

    • @somethingmysterious58
      @somethingmysterious58 2 года назад

      you have not used json_decode() function. put $posts variable inside than function then this error shall be vanished.

    • @monowersadaf
      @monowersadaf 2 года назад

      @@somethingmysterious58 i did not receive any error. even thou i didn't use the json_decode() function. why didnt i get error?

  • @mihiranchathuranga8675
    @mihiranchathuranga8675 3 года назад

    Is this related to Laravel Rest API

    • @somethingmysterious58
      @somethingmysterious58 2 года назад

      this is kinda ready made api, when u have to create your own api then it is totally kinda different material :D

  • @manyatiwari4292
    @manyatiwari4292 2 года назад

    It's a curl error 60 certification error is showing

  • @quocdattranquoc1832
    @quocdattranquoc1832 3 года назад

    i have the problem which error:
    "Undefined array key "data"
    what is the solution to this error?
    please, help me, thanks a lot

  • @dikshajanbandhu3248
    @dikshajanbandhu3248 3 года назад

    How you create the API URL

    • @darn2926
      @darn2926 2 года назад

      there is a link in the description

  • @HamzaKhan-nm4iw
    @HamzaKhan-nm4iw 3 года назад

    how to integrate 3rd party api in your project

  • @danishkhan5059
    @danishkhan5059 3 года назад

    how to paginate data

  • @ansarmehmood4488
    @ansarmehmood4488 3 года назад

    Hi, man could you help me to resolve this error in Class 'Illuminate\Support\Facades\Http' not found
    if you send me your Http file it would be very usable for me

    • @satvikraghuvanshi3436
      @satvikraghuvanshi3436 3 года назад

      Hi, make sure that you have Guzzle package - if you want to install it - just write this command in cli ==> composer require guzzlehttp/guzzle

  • @Dreamerstube-ot8fj
    @Dreamerstube-ot8fj 10 месяцев назад

    how can solve the problem of
    Ignition Settings
    Docs
    EDITOR
    PhpStorm
    THEME
    Auto
    SAVE SETTINGS
    Settings will be saved locally in ~/.ignition.json.
    include(C:\Users\Admin\Desktop\fresLaravel\blog\vendor\composer/../../app/Http/Controllers/Controller.php): Failed to open stream: No such file or directory
    ErrorException
    PHP 8.2.12
    10.38.2
    include(C:\Users\Admin\Desktop\fresLaravel\blog\vendor\composer/../../app/Http/Controllers/Controller.php): Failed to open stream: No such file or directory