Skip to content

Commit

Permalink
Permissions read me instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
acoustep committed Aug 12, 2015
1 parent 167be88 commit 5a8fd4a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Add the Entrust GUI middleware to ```app\Http\Kernal.php```. This middleware wil

```
protected $routeMiddleware = [
// ...
'entrust-gui.admin' => \Acoustep\EntrustGui\Http\Middleware\AdminAuth::class,
];
Expand Down Expand Up @@ -238,6 +239,7 @@ The following event classes are available:

* ```UserCreatedEvent```, ```UserDeletedEvent```, ```UserUpdatedEvent```.
* ```RoleCreatedEvent```, ```RoleDeletedEvent```, ```RoleUpdatedEvent```.
* ```PermissionCreatedEvent```, ```PermissionDeletedEvent```, ```PermissionUpdatedEvent```.

#### Example Event Listener

Expand Down Expand Up @@ -276,7 +278,7 @@ class UserCreatedListener
}
```

Add the listeners you need to use to ```app/Providers/EventServiceProvider.php```
Add the listeners you need to use to ```app/Providers/EventServiceProvider.php```.

```
protected $listen = [
Expand All @@ -297,6 +299,15 @@ protected $listen = [
],
'Acoustep\EntrustGui\Events\RoleDeletedEvent' => [
'App\Listeners\RoleDeletedListener',
],
'Acoustep\EntrustGui\Events\PermissionCreatedEvent' => [
'App\Listeners\PermissionCreatedListener',
],
'Acoustep\EntrustGui\Events\PermissionUpdatedEvent' => [
'App\Listeners\PermissionUpdatedListener',
],
'Acoustep\EntrustGui\Events\PermissionDeletedEvent' => [
'App\Listeners\PermissionDeletedListener',
]
];
```
Expand Down
2 changes: 1 addition & 1 deletion views/permissions/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('heading', 'Permissions')

@section('content')
<a class="btn btn-labeled btn-primary" href="{{ route('entrust-gui::permissions.create') }}"><span class="btn-label"><i class="fa fa-plus"></i></span>Create Permission</a>
<a class="btn btn-labeled btn-primary" href="{{ route('entrust-gui::permissions.create') }}"><span class="btn-label"><i class="fa fa-plus"></i></span>Create Permission</a>
<table class="table table-striped">
<tr>
<th>Name</th>
Expand Down

0 comments on commit 5a8fd4a

Please sign in to comment.