PHPackages                             hchs/judge - 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. hchs/judge

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

hchs/judge
==========

Handle Role and Permission in Laravel

0.2.3(9y ago)1135PHP

Since Sep 27Pushed 9y agoCompare

[ Source](https://github.com/hchstera/judge)[ Packagist](https://packagist.org/packages/hchs/judge)[ RSS](/packages/hchs-judge/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (15)Used By (0)

judge
-----

[](#judge)

Composer Package for Manage Roles and Permissions in Laravel.

### Introduction

[](#introduction)

- 80% complete
- Version 0.21

### Features

[](#features)

1. Manage Role and Permission in different kinds of User Models (Authcatible Model).
2. Create, Given, Remove, Delete and Check Permission.
3. Create, Given, Remove, Delete and Check Role.

### Links

[](#links)

- [composer package](https://packagist.org/packages/hchs/judge)
- [github](https://github.com/hchstera/judge)

### DEMO

[](#demo)

- Notyet

How To Use
----------

[](#how-to-use)

### Install

[](#install)

1.composer require

```
	$ composer require hchs/judge

```

2.add Service Provider in config/app.php

```
	Hchs\Judge\JudgeServiceProvider::class

```

3.run vendor:publish

```
	$ php artisan vendor:publish --tag=migrations

	$ php artisan vendor:publish --tag=config

	// optional
	$ php artisan vendor:publish --tag=tests

```

4.modify config file config/judge.php

```
'models' => [
	'users' => 'App\User',  // set relation and namespace
	'fakeusers' => 'Hchs\Judge\Permission\FakeUser', // only for testing
]
```

5.Auth Model extends Judge Abstract Class

```
