laravelapachelaravel-5soap-client

Fatal error: Class 'SoapClient' not found after upgrading PHP from version 7.0 to 7.2


I upgraded PHP 7.0 to 7.2 in Ubuntu. After performing an upgrade, I installed Laravel 5.6.

Before the upgrade, class 'SoapClient' is true, but after the upgrade, I encountered

Fatal error: Class 'SoapClient' not found

I checked php.ini in /etc/php/7.2/apache2/php.ini but I didn't see extension=php_soap.dll in php.ini.

How to resolve this issue?


Solution

  • To install SOAP in PHP 7.2 run following in your Ubuntu 16.04 terminal:

    1. sudo apt-get install php7.2-soap
    2. sudo service apache2 restart