I am using PHP 7.4 and Laravel 8 to create an app.
I am trying to send an SMS like this:
...
...
$this->client = new \SoapClient('http://ippanel.com/class/sms/wsdlservice/server.php?wsdl');
$this->user = '****';
$this->pass = '****';
$this->fromNum = '****';
...
...
But I get this error:
Error: Class 'SoapClient' not found in /usr/local/lsws/IRMine/html/core/app/Classes/ippanelSMS.php
And I already installed and enabled php-soap in my server:
So what could my problem be??
First use should check your if your module is really loaded by execution this command:
var_dump(extension_loaded('soap'));
Also you should check the path of your loaded configuration
var_dump( get_cfg_var('cfg_file_path') );
It could be that the module is only activated for the CLI, so you should double check that your configuration is correct.