Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
Merged branch 5.2 into 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricky-rick committed Dec 1, 2016
2 parents 6be5ee7 + 68c582e commit 6bce639
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
@@ -1,12 +1,18 @@
[![Build Status](https://travis-ci.org/ultraware/roles.svg?branch=5.3)](https://travis-ci.org/ultraware/roles)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ultraware/roles/badges/quality-score.png?b=5.3)](https://scrutinizer-ci.com/g/ultraware/roles/?branch=5.1)
[![StyleCI](https://styleci.io/repos/74971525/shield?branch=5.3)](https://styleci.io/repos/74971525)
[![Coverage Status](https://coveralls.io/repos/github/ultraware/roles/badge.svg?branch=5.3)](https://coveralls.io/github/ultraware/roles?branch=5.1)

# Roles And Permissions For Laravel 5

Powerful package for handling roles and permissions in Laravel 5 (5.1 and also 5.0).
Powerful package for handling roles and permissions in Laravel 5.

- [Installation](#installation)
- [Composer](#composer)
- [Service Provider](#service-provider)
- [Config File And Migrations](#config-file-and-migrations)
- [HasRoleAndPermission Trait And Contract](#hasroleandpermission-trait-and-contract)
- [Migrate from Bican roles](#Migrate-from-bican-roles)
- [Usage](#usage)
- [Creating Roles](#creating-roles)
- [Attaching, Detaching and Syncing Roles](#attaching-detaching-and-syncing-roles)
Expand Down Expand Up @@ -71,6 +77,11 @@ And also run migrations.

Include `HasRoleAndPermission` trait and also implement `HasRoleAndPermission` contract inside your `User` model.

## Migrate from bican roles
If you migrate from bican/roles to ultraware/roles yoe need to update a few things.
- Change all calls to `can`, `canOne` and `canAll` to `hasPermission`, `hasOnePermission`, `hasAllPermissions`.
- Change all calls to `is`, `isOne` and `isAll` to `hasRole`, `hasOneRole`, `hasAllRoles`.

## Usage

### Creating Roles
Expand Down

0 comments on commit 6bce639

Please sign in to comment.