haruncpi / laravel-user-activity

Monitor user activity easily!
https://laravelarticle.com/laravel-user-activity
424 stars 53 forks source link

Getting exception while running install command #15

Closed sunilsharma0 closed 3 years ago

sunilsharma0 commented 3 years ago

php artisan user-activity:install

[InvalidArgumentException]
There are no commands defined in the "user-activity" namespace.

I am using Laravel Framework version 5.0.35. Please help me to resolve it @haruncpi @affektde @coziboy @fbsoares @MouadZIANI @.

haruncpi commented 3 years ago

Laravel 5.0 not support automatic service provider. To fix that, add the service provider manually in app.php file.

Haruncpi\LaravelUserActivity\ServiceProvider.php
sunilsharma0 commented 3 years ago

PHP Fatal error: Cannot use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider because the name is already in use in /var/www/html/eco/api/webservices/vendor/haruncpi/laravel-user-activity/src/EventServiceProvider.php on line 9

Getting new fatal error after manually adding service provider @haruncpi

haruncpi commented 3 years ago

Try it in Laravel >=5.5