Laravel和SoapClient-找不到“ SoapClient”类

时间:2019-06-25 10:05:54

标签: laravel soap

由于某种原因,我没有设法使用SoapClient,即使它(如您在图像上看到的)被很好地引用了

enter image description here

<?php
namespace App\Http\Controllers;
use SoapClient;

class InsuranceController extends Controller
{
    function createBooking($wsdl){
        $ws  = new SoapClient($wsdl);
        $ret  = $ws->transaction($xml);

我收到此错误:找不到类'SoapClient'

我尝试将其添加到app.php

'SoapClient' => SoapClient::class

,我也尝试使用\ SoapClient()代替SoapClient()

有什么主意吗?

非常感谢您

0 个答案:

没有答案