qcod / laravel-gamify

Gamify your Laravel app with Reputation Points & Achievements Badges support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Class 'QCod\Gamify\GamifyServiceProvider' not found"

ojhadiwesh opened this issue · comments

I am getting this error, I have installed the package.

app.php constains "QCod\Gamify\GamifyServiceProvider::class"

composer.json contains "qcod/laravel-gamify": "^1.0",

Any idea how to solve this?

which version of Laravel you are using?

If you are installing on Laravel 5.4 or lower you will be needed to manually register Service Provider by adding it in config/app.php providers array.

'providers' => [
    //...
    QCod\Gamify\GamifyServiceProvider::class
]

I am using the 5.8 version. I tried adding the service provider in the app.php, still doesnt work
.

I just created a fresh app with Laravel 5.8 and then ran

composer require qcod/laravel-gamify

I don't see any issue it's working fine.

Please run composer dump-autoload
and lastly, if it didnt work then
remove the vendor folder and composer.lock and run composer install

Also share your php version