Laravel 8 tutorial in Hindi - Http Client
HTML-код
- Опубликовано: 14 сен 2020
- In this laravel 8 Hindi video tutorial, we learn how to call api with HTTP client in laravel latest version. This video is made by anil Sidhu in the Hindi language
API url reqres.in/api/users?page=1
steps of video
What is Http Client
How to use Http Client
Send Data to View
Show Data in HTML Table
Interview Question
Laravel 9 tutorial in Hindi
Laravel 9 in hindi
thanks for this video
Ans bhi next video Mai Bata di jiye 🙏
Hii.. please make a video on laravel 8 sessions with database connection login page
I have used any other link for json api but I am getting an error like guzzlehttp/cookie jar as array. It is working perfectly only with your given json link.
Same problem 🤷
return view('tut-23.users',['collection'=>$data['data']]);
Cannot use object of type GuzzleHttp\Cookie\CookieJar as array
Whoever facing with this error "Cannot use object of type GuzzleHttp\Cookie\CookieJar as array".
Solution : It does not return a collection. It returns a response. Append ->collect() to make a collection as $getData= Http:: get("url")->collect();
I also facing the same problem but I have changed that line by "return view('myApiData',['data'=>$data['data']]);" as it is shown in video and now it is showing perfectly.
sir api pe 3-4 video or laiye
bhai bhut sari video ayegi...
@@codestepbystep sir ye api ka url aya kider se ha?ye bta dien
sir when i run this page error is shown undefined varibles $list i have also check variable name sir
I faced same problem. How you solved this ?
help me
But this api is not work on localhost because localhost only supports http now what I do?
this will also work on localhost, follow same steps as in the video
Http get ke under url no ho to uskit jaga kay aata he
when i get api url from controller, this error is show > cURL error 60: SSL certificate problem: unable to get local issuer certificate.
same issue occur So I Modified file vendor\guzzlehttp\guzzle\src\Client.php - 'verify' => false After Work.
how we get request as 5:16
sir, ya api ka url kha se mle ga
lekin sir api kese bnayee..
Illuminat/supports/facades/Http
And
Illuminat/supports/facades/DB
kaha se aya??
Same question, ye path kidhr se aya files me kidhr hai ye?? Kidhr se import ho rha hai??
This is inbuilt file i laravel, which is fetched data for use only
Vendor ka folder se
insert update delete
Illuminat/supports/facades/Http
And
Illuminat/supports/facades/DB
kaha se aya file me nhi hai
In Your Project -> vendor\laravel\framework\src\Illuminate\Support\Facades\DB.php
Bhai haar baaar usercontroller kabhi kuch aur name rakho
😂
Shi hai😂
use Illuminate\Support\Facades\Http
Class 'Illuminate\Support\Facades\Http' not found
Illuminate first letter I should be capital
@@usamaaslam517 already used First Letter Capital
Have you find solution of this problem ??
please let me know, I'm facing same issue that Class 'Illuminate\Support\Facades\Http' not found
thank you