# User Role Repository

To work with the with `Role` Repository, use the following Facade:

```php
use Statamic\Facades\Role;
```

## Methods

| Methods | Description |
| ------- | ----------- |
| `all()` | Get all User Roles |
| `find($id)` | Get User Roles by `id` |
| `make()` | Makes a new `Role` instance |

:::tip
The `id` is the same as `handle` while using the default Stache driver.
:::


## Creating

Start by making an instance of a user role with the `make` method. You can pass the handle into it.

```php
$role = Role::make('editors');
```

You may call additional methods on the role to customize it further.

```php
$role
    ->title('Editors')
    ->permissions($permissions); // array of permissions
```

Finally, save it.

```php
$role->save();
```
