Skip to content

Commit 87a1f4e

Browse files
authored
Update README.md
1 parent b66f59c commit 87a1f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ php artisan db:seed --class=PermissionDatabaseSeeder
4848
```
4949
6. Add Routes
5050
```
51-
Route::group(['prefix' => config('permission.prefix')], function () {
51+
Route::group(['prefix' => config('permission.prefix'),'middleware'=>['role:admin']], function () {
5252
Permission::routes();
5353
});
5454
```
@@ -226,4 +226,4 @@ Route::group(['middleware'=>['role:admin']],function(){
226226
@haspermission('edit')
227227
<p>You have admin Permission</p>
228228
@endhaspermission
229-
```
229+
```

0 commit comments

Comments
 (0)