For some reason I don't manage to use SoapClient, even though (as you can see on the image) it is well referenced
<?php
namespace App\Http\Controllers;
use SoapClient;
class InsuranceController extends Controller
{
function createBooking($wsdl){
$ws = new SoapClient($wsdl);
$ret = $ws->transaction($xml);
I get this error: Class 'SoapClient' not found
I tried adding it in app.php
'SoapClient' => SoapClient::class
and I also tried using \SoapClient() also, instead of SoapClient()
Any idea?
Thank you very much