Reputation: 167
I'm studing about Repository Design Pattern in Laravel and I'm using https://github.com/andersao/l5-repository to do it.
But after I copy/paste folder prettus in my project and add in my config/app.php Prettus\Repository\Providers\RepositoryServiceProvider::class to the end of the providers array I find a problem:
Class 'Prettus\Repository\Providers\Repository ServiceProvider' not found
After that, the project can't run. Please help me.
Thanks
Upvotes: 2
Views: 5751
Reputation: 732
Don't copy/paste the source folder in your project.
Try following the instructions as stated in the Github documentation:
composer require prettus/l5-repository
After the installation finishes you can include the Class in the ServiceProvider array and then you have to publish the configuration:
php artisan vendor:publish
Upvotes: 5