Ok so i been following the tutorial for ably Building a realtime chat app with Laravel using WebSockets
but when i tried to create a messageEvent using the command:
php artisan make:event PublicMessageEvent
this is what it shows: Class "Ably\AblyRest" not found
this is my composer.json required packeges package see if is anything wrong
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
I tried composer-cache-clear
deleting the vendor folder and composer install
, but nothing the same error
The error appears even after clean composer install
now it even shows after installing all the packages so no idea what could it been.