Laravel: Class ‘GuzzleHttp\Client’ not found

Posted by

Error:

production.ERROR: Class "GuzzleHttp\Client" not found (View: /opt/lampp/htdocs/myhospitalnow/mhn-admin-ms/resources/views/components/admin-home-page.blade.php) (View: /opt/lampp/htdocs/myhospitalnow/mhn-admin-ms/resources/views/components/admin-home-page.blade.php) {"userId":1,"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Class \"GuzzleHttp\\Client\" not found (View: /opt/lampp/htdocs/myhospitalnow/mhn-admin-ms/resources/views/components/admin-home-page.blade.php) (View: /opt/lampp/htdocs/myhospitalnow/mhn-admin-ms/resources/views/components/admin-home-page.blade.php) at /opt/lampp/htdocs/myhospitalnow/mhn-admin-ms/app/Http/Controllers/PassportApi/DoctorManagementController.php:33)
[stacktrace]

Solution:

Step 1: go to composer.json and and this package

 "guzzlehttp/guzzle": "^7.2",

Step 2 : after that composer update

composer update

After that Error solved

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x