namespace App\lara;
use SoapClient;
use StdClass;
class abrLookup extends SoapClient {
private $guid = "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx";
public function __construct()
{
$params = array(
'soap_version' => SOAP_1_1,
'exceptions' => true,
'trace' => 1,
'cache_wsdl' => WSDL_CACHE_NONE
);
Error
"Class 'SoapClient' not found"
I am trying to extend this class for however it is saying soap client not found, I am using php 7.2. I have went into my Apache and php setting and enabled the extension and looked up the php settings and it is enabled.
soap
Soap Client => enabled
Soap Server => enabled
Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400
I then thought it was a laravel problem so i restarted the server and ran these commands
php artisan config:cache
php artisan config:clear
However i'm still where I started and clueless on how to resolve this issue, this is running on Ubuntu - php V7.2