1 | <?php |
||
2 | |||
3 | return [ |
||
4 | |||
5 | /* |
||
6 | |-------------------------------------------------------------------------- |
||
7 | | Laravel-users setting |
||
8 | |-------------------------------------------------------------------------- |
||
9 | */ |
||
10 | |||
11 | // The parent blade file |
||
12 | 'laravelUsersBladeExtended' => 'laravelusers::layouts.app', // 'layouts.app' |
||
0 ignored issues
–
show
|
|||
13 | |||
14 | // Enable `auth` middleware |
||
15 | 'authEnabled' => true, |
||
16 | |||
17 | // Enable Optional Roles Middleware on the users assignments |
||
18 | 'rolesEnabled' => false, |
||
19 | |||
20 | /* |
||
21 | | Enable Roles Middlware on the usability of this package. |
||
22 | | This requires the middleware from the roles package to be registered in `App\Http\Kernel.php` |
||
23 | | An Example: of roles middleware entry in protected `$routeMiddleware` array would be: |
||
24 | | 'role' => \jeremykenedy\LaravelRoles\Middleware\VerifyRole::class, |
||
25 | */ |
||
26 | |||
27 | 'rolesMiddlwareEnabled' => true, |
||
28 | |||
29 | // Optional Roles Middleware |
||
30 | 'rolesMiddlware' => 'role:admin', |
||
31 | |||
32 | // Optional Role Model |
||
33 | 'roleModel' => 'jeremykenedy\LaravelRoles\Models\Role', |
||
34 | |||
35 | // Enable Soft Deletes - Not yet setup - on the roadmap. |
||
36 | 'softDeletedEnabled' => false, |
||
37 | |||
38 | // Laravel Default User Model |
||
39 | 'defaultUserModel' => 'App\User', |
||
40 | |||
41 | // Use the provided blade templates or extend to your own templates. |
||
42 | 'showUsersBlade' => 'laravelusers::usersmanagement.show-users', |
||
43 | 'createUserBlade' => 'laravelusers::usersmanagement.create-user', |
||
44 | 'showIndividualUserBlade' => 'laravelusers::usersmanagement.show-user', |
||
45 | 'editIndividualUserBlade' => 'laravelusers::usersmanagement.edit-user', |
||
46 | |||
47 | // Use Package Bootstrap Flash Alerts |
||
48 | 'enablePackageBootstapAlerts' => true, |
||
49 | |||
50 | // Users List Pagination |
||
51 | 'enablePagination' => true, |
||
52 | 'paginateListSize' => 25, |
||
53 | |||
54 | // Enable Search Users- Uses jQuery Ajax |
||
55 | 'enableSearchUsers' => true, |
||
56 | |||
57 | // Users List JS DataTables - not recommended use with pagination |
||
58 | 'enabledDatatablesJs' => false, |
||
59 | 'datatablesJsStartCount' => 25, |
||
60 | 'datatablesCssCDN' => 'https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css', |
||
61 | 'datatablesJsCDN' => 'https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js', |
||
62 | 'datatablesJsPresetCDN' => 'https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js', |
||
63 | |||
64 | // Bootstrap Tooltips |
||
65 | 'tooltipsEnabled' => true, |
||
66 | 'enableBootstrapPopperJsCdn' => true, |
||
67 | 'bootstrapPopperJsCdn' => 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js', |
||
68 | |||
69 | // Icons |
||
70 | 'fontAwesomeEnabled' => true, |
||
71 | 'fontAwesomeCdn' => 'https://use.fontawesome.com/releases/v5.0.6/css/all.css', |
||
72 | |||
73 | // Extended blade options for packages app.blade.php |
||
74 | 'enableBootstrapCssCdn' => true, |
||
75 | 'bootstrapCssCdn' => 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css', |
||
76 | |||
77 | 'enableAppCss' => true, |
||
78 | 'appCssPublicFile' => 'css/app.css', |
||
79 | |||
80 | 'enableBootstrapJsCdn' => true, |
||
81 | 'bootstrapJsCdn' => 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js', |
||
82 | |||
83 | 'enableAppJs' => true, |
||
84 | 'appJsPublicFile' => 'js/app.js', |
||
85 | |||
86 | 'enablejQueryCdn' => true, |
||
87 | 'jQueryCdn' => 'https://code.jquery.com/jquery-3.3.1.min.js', |
||
88 | |||
89 | ]; |
||
90 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.