Class' Artisaninweb \ SoapWrapper \ ServiceProvider'在vendor \ laravel \ framework \ src \ Illuminate \ Foundation \ Application.php中找不到

时间:2017-11-24 07:15:01

标签: laravel laravel-5 laravel-5.3

我想在我的laravel 5.3项目中添加soap服务。我已经添加了服务提供者 在config / app.php中

'aliases' => [
    'SoapWrapper' => Artisaninweb\SoapWrapper\ServiceProvider::class,   
    'SoapClient' => SoapClient::class,
],

在bootstrap / app中,php我添加了

$app->register(Artisaninweb\SoapWrapper\ServiceProvider::class);

我的composer.json就像

"require": {
        "php": ">=5.6.4",
        "laravel/framework": "5.3.*",
        "laravelcollective/html": "^5.3.0",
        "artisaninweb/laravel-soap": "0.2.5.10",
        "hashids/hashids": "^1.0",
        "maatwebsite/excel": "~2.1.0"
    },

在我的控制器中

use Artisaninweb\SoapWrapper\Facades\SoapWrapper;
use SoapClient;

并清除缓存as和composer

composer dumpautoload -o
composer clearcache

我仍然遇到致命错误

  

致命错误:Class' Artisaninweb \ SoapWrapper \ ServiceProvider'不   在发现   C:\ wamp64 \ WWW \ pjct_name \供应商\ laravel \框架的\ src \照亮\基金会\ Application.php   在线610

我错过了什么

0 个答案:

没有答案