Skip to content

Commit 6c43120

Browse files
committed
update config and readme
1 parent e87cc53 commit 6c43120

File tree

2 files changed

+66
-52
lines changed

2 files changed

+66
-52
lines changed

readme.md

Lines changed: 65 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ Laravel users can work out the box with or without the following roles packages:
3333
| Laravel Users Features |
3434
| :------------ |
3535
|Full CRUD of Laravel Users|
36-
|Works with built in [auth scaffolding](https://laravel.com/docs/5.5/authentication)|
36+
|Works with built in [auth scaffolding](https://laravel.com/docs/5.6/authentication)|
3737
|Works with various [Roles/ACL Packages](https://github.com/jeremykenedy/laravel-roles)|
38-
|Uses [Language localization](https://laravel.com/docs/5.5/localization) File System|
38+
|Uses [Language localization](https://laravel.com/docs/5.6/localization) File System|
3939
|Uses [font awesome](https://fontawesome.com/icons), cdn can be optionally called in config|
40-
|Can use built in [pagination](https://laravel.com/docs/5.5/pagination) and/or [datatables.js](https://datatables.net/)|
41-
|Lots of [configuration](#configuration) options|
40+
|Can use built in [pagination](https://laravel.com/docs/5.6/pagination) and/or [datatables.js](https://datatables.net/)|
4241
|Can search all users by name, id, or email|
42+
|Lots of [configuration](#configuration) options|
43+
4344

4445
### Requirements
4546
* [Laravel 5.2, 5.3, 5.4, 5.5, 5.6+](https://laravel.com/docs/installation)
@@ -117,13 +118,22 @@ Laravel Users can be configured directly in [`/config/laravelusers.php`](https:/
117118
*/
118119
119120
// The parent blade file
120-
'laravelUsersBladeExtended' => 'laravelusers::layouts.app', // 'layouts.app'
121+
'laravelUsersBladeExtended' => 'laravelusers::layouts.app', // 'layouts.app'
121122
122123
// Enable `auth` middleware
123124
'authEnabled' => true,
124125
125-
// Enable Optional Roles Middleware
126-
'rolesEnabled' => false,
126+
// Enable Optional Roles Middleware on the users assignments
127+
'rolesEnabled' => true,
128+
129+
/*
130+
| Enable Roles Middlware on the usability of this package.
131+
| This requires the middleware from the roles package to be registered in `App\Http\Kernel.php`
132+
| An Example: of roles middleware entry in protected `$routeMiddleware` array would be:
133+
| 'role' => \jeremykenedy\LaravelRoles\Middleware\VerifyRole::class,
134+
*/
135+
136+
'rolesMiddlwareEnabled' => true,
127137
128138
// Optional Roles Middleware
129139
'rolesMiddlware' => 'role:admin',
@@ -144,6 +154,9 @@ Laravel Users can be configured directly in [`/config/laravelusers.php`](https:/
144154
'enablePagination' => true,
145155
'paginateListSize' => 25,
146156
157+
// Enable Search Users- Uses jQuery Ajax
158+
'enableSearchUsers' => true,
159+
147160
// Users List JS DataTables - not recommended use with pagination
148161
'enabledDatatablesJs' => false,
149162
'datatablesJsStartCount' => 25,
@@ -223,53 +236,54 @@ laravel-users/
223236
├── composer.json
224237
├── phpunit.xml
225238
├── readme.md
226-
├── src
227-
│   ├── App
228-
│   │   └── Http
229-
│   │   └── Controllers
230-
│   │   └── UsersManagementController.php
231-
│   ├── LaravelUsersFacade.php
232-
│   ├── LaravelUsersServiceProvider.php
233-
│   ├── config
234-
│   │   └── laravelusers.php
235-
│   ├── resources
236-
│   │   ├── lang
237-
│   │   │   └── en
238-
│   │   │   ├── app.php
239-
│   │   │   ├── forms.php
240-
│   │   │   ├── laravelusers.php
241-
│   │   │   └── modals.php
242-
│   │   └── views
243-
│   │   ├── layouts
244-
│   │   │   └── app.blade.php
245-
│   │   ├── modals
246-
│   │   │   ├── modal-delete.blade.php
247-
│   │   │   └── modal-save.blade.php
248-
│   │   ├── partials
249-
│   │   │   ├── bs-visibility-css.blade.php
250-
│   │   │   ├── form-status.blade.php
251-
│   │   │   └── styles.blade.php
252-
│   │   ├── scripts
253-
│   │   │   ├── check-changed.blade.php
254-
│   │   │   ├── datatables.blade.php
255-
│   │   │   ├── delete-modal-script.blade.php
256-
│   │   │   ├── save-modal-script.blade.php
257-
│   │   │   ├── toggleText.blade.php
258-
│   │   │   └── tooltips.blade.php
259-
│   │   └── usersmanagement
260-
│   │   ├── create-user.blade.php
261-
│   │   ├── edit-user.blade.php
262-
│   │   ├── show-user.blade.php
263-
│   │   └── show-users.blade.php
264-
│   └── routes
265-
│   └── web.php
266-
└── tests
267-
├── Feature
268-
└── TestCase.php
239+
└── src
240+
├── App
241+
│   └── Http
242+
│   └── Controllers
243+
│   └── UsersManagementController.php
244+
├── LaravelUsersFacade.php
245+
├── LaravelUsersServiceProvider.php
246+
├── config
247+
│   └── laravelusers.php
248+
├── resources
249+
│   ├── lang
250+
│   │   └── en
251+
│   │   ├── app.php
252+
│   │   ├── forms.php
253+
│   │   ├── laravelusers.php
254+
│   │   └── modals.php
255+
│   └── views
256+
│   ├── layouts
257+
│   │   └── app.blade.php
258+
│   ├── modals
259+
│   │   ├── modal-delete.blade.php
260+
│   │   └── modal-save.blade.php
261+
│   ├── partials
262+
│   │   ├── bs-visibility-css.blade.php
263+
│   │   ├── form-status.blade.php
264+
│   │   ├── search-users-form.blade.php
265+
│   │   └── styles.blade.php
266+
│   ├── scripts
267+
│   │   ├── check-changed.blade.php
268+
│   │   ├── datatables.blade.php
269+
│   │   ├── delete-modal-script.blade.php
270+
│   │   ├── save-modal-script.blade.php
271+
│   │   ├── search-users.blade.php
272+
│   │   ├── toggleText.blade.php
273+
│   │   └── tooltips.blade.php
274+
│   └── usersmanagement
275+
│   ├── create-user.blade.php
276+
│   ├── edit-user.blade.php
277+
│   ├── show-user.blade.php
278+
│   └── show-users.blade.php
279+
└── routes
280+
└── web.php
281+
282+
269283
```
270284

271285
* Tree command can be installed using brew: `brew install tree`
272-
* File tree generated using command `tree -a -I '.git|node_modules|vendor|storage|tests`
286+
* File tree generated using command `tree -a -I '.git|node_modules|vendor|storage|tests'`
273287

274288
### License
275289
Laravel-Users | A Laravel Users Management Package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT). Enjoy!

src/config/laravelusers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'authEnabled' => true,
1616

1717
// Enable Optional Roles Middleware on the users assignments
18-
'rolesEnabled' => true,
18+
'rolesEnabled' => false,
1919

2020
/*
2121
| Enable Roles Middlware on the usability of this package.

0 commit comments

Comments
 (0)