2017-07-19 116 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); 
相關問題