通过作曲家安装推杆时,它可以工作!
composer require pusher/pusher-php-server
但是当通过composer>>安装 elibyy / tcpdf-laravel 和 maatwebsite / excel 时pdf和excel有效,但不是推动!!
错误>>没有找到Pusher类!!
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 :(得分:0)
通过任何更改,您是否已将Pusher从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);