2017-07-19 40 views
-1

通过作曲者安装推送器时,推送器类无法找到!通过作曲者安装tcpdf和maatwebsite/excel时找不到推送器类

composer require pusher/pusher-php-server 

但通过作曲家>> PDF安装elibyy/TCPDF-laravelmaatwebsite时/ EXCEL和excel的作品,但没有推动器!

错误>>未找到类推杆!

composer.json

"require": { 
    "php": ">=5.6.4", 
    "laravel/framework": "5.3.*", 
    "caouecs/laravel-lang": "~3.0", 
    "laravelcollective/html": "^5.3.0", 
    "yajra/laravel-datatables-oracle": "6.25.0", 
    "laravel/socialite": "2.0.21", 
    "musonza/chat": "^1.0", 
    "guzzlehttp/guzzle": "^6.2", 
    "pusher/pusher-php-server": "^3.0", 
    "illuminate/support": "5.3.*", 
    "tecnickcom/tcpdf": "6.2.12", 
    "elibyy/tcpdf-laravel": "5.3.0", 
    "maatwebsite/excel": "2.1.*" 
}, 

回答

0

通过任何改变你从2.X版本升级推到3.0.0?他们已经推出了命名空间,这样试试:

new \Pusher\Pusher($auth_key, $secret, $app_id); 

或导入:

<?php 

use Pusher\Pusher; 
// ... 

$pusher = new Pusher($auth_key, $secret, $app_id); 
相关问题