PHPackages                             iamjaime/credits - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. iamjaime/credits

ActiveLaravel[Authentication &amp; Authorization](/categories/authentication)

iamjaime/credits
================

Laravel Package for easily adding User Credits support

244236[1 issues](https://github.com/iamjaime/laravel-user-credits/issues)PHP

Since Jul 17Pushed 7y ago2 watchersCompare

[ Source](https://github.com/iamjaime/laravel-user-credits)[ Packagist](https://packagist.org/packages/iamjaime/credits)[ RSS](/packages/iamjaime-credits/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

### Laravel User Credits Package

[](#laravel-user-credits-package)

The purpose of this package is for you to be able to easily apply a credit based system to your existing Laravel Application.

For example : if you want to create a site that people must purchase credits in order to purchase items on the site, this package will make it easy for you to do.

To get started follow these steps:

*Install the package using composer*

`composer require iamjaime/credits --dev`

Then go to your config/app directory and add the following to the providers array:

`Iamjaime\Credits\UserCreditServiceProvider::class`

Now you must run the migrations....

`php artisan migrate`

Now go to your User's Model and add the following line at the top:

`use Iamjaime\Credits\Traits\UsesCredits;`

then add the following line inside your class :

`use UsesCredits;`

Your Model should now look something like this :

```
