I am trying to use Pusher's vanilla PHP library within my controller.
This is what I'm trying to do:
include( app_path().'/includes/Pusher.php' );
$pusher = new Pusher('KEY', 'KEY', '1234');
$pusher->trigger('bid_channel', 'NewBid', $auction);
I know there are Pusher packages but every one of them is broken in some way or another. The vinkla
packages Facades don't work.
I have used the above code successfully in routes.php
to test it but when I put it in my controller I get this error:
FatalErrorException in APIController.php line 40: Class 'App\Http\Controllers\Pusher' not found
Any help would be appreciated!