<commit_before># Roles for Laravel 5

Simple package for handling user roles in Laravel 5.

## Install

Pull this package in through Composer.

```js
{
  "require": {
    "bican/roles": "dev-master"
  }
}
```

Then you need to create and run migrations. You can find them in src/migrations directory. Migration for users table is in Laravel 5 out of the box.

## Usage

First, include HasRole trait inside your User model.

```php
...

use Bican\Roles\HasRole;

class User extends Model implements AuthenticatableContract, CanResetPasswordContract {

	use Authenticatable, CanResetPassword, HasRole;

...
```

... and actually you are set to go!

Now you can create roles and attach them to a user.<commit_msg>change README.md<commit_after># Roles for Laravel 5

Simple package for handling user roles in Laravel 5.

## Install

Pull this package in through Composer.

```js
{
  "require": {
    "bican/roles": "~0.9"
  }
}
```

Then you need to create and run migrations. You can find them in src/migrations directory. Migration for users table is in Laravel 5 out of the box.

## Usage

First, include HasRole trait inside your User model.

```php
...

use Bican\Roles\HasRole;

class User extends Model implements AuthenticatableContract, CanResetPasswordContract {

	use Authenticatable, CanResetPassword, HasRole;

...
```

... and actually you are set to go!

Now you can create roles and attach them to a user.
{'fraction_non_alphanumeric': 0.08750882145377559, 'fraction_numerical': 0.0056457304163726185, 'mean_word_length': 3.74247491638796, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6212169', 'n_tokens_mistral': 441, 'n_tokens_neox': 421, 'n_words': 186}