/
core.php
184 lines (174 loc) · 8.76 KB
/
core.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?php
return [
/*
|--------------------------------------------------------------------------
| The prefix that'll be used for the administration
|--------------------------------------------------------------------------
*/
'admin-prefix' => 'backend',
/*
|--------------------------------------------------------------------------
| Location where your themes are located
|--------------------------------------------------------------------------
*/
'themes_path' => base_path() . '/Themes',
/*
|--------------------------------------------------------------------------
| Which administration theme to use for the back end interface
|--------------------------------------------------------------------------
*/
'admin-theme' => 'AdminLTE',
/*
|--------------------------------------------------------------------------
| AdminLTE skin
|--------------------------------------------------------------------------
| You can customize the AdminLTE colors with this setting. The following
| colors are available for you to use: skin-blue, skin-green,
| skin-black, skin-purple, skin-red and skin-yellow.
*/
'skin' => 'skin-blue',
/*
|--------------------------------------------------------------------------
| WYSIWYG Backend Editor
|--------------------------------------------------------------------------
| Define which editor you would like to use for the backend wysiwygs.
| These classes are event handlers, listening to EditorIsRendering
| you can define your own handlers and use them here
| Options:
| - \Modules\Core\Events\Handlers\LoadCkEditor::class
| - \Modules\Core\Events\Handlers\LoadSimpleMde::class
*/
'wysiwyg-handler' => \Modules\Core\Events\Handlers\LoadCkEditor::class,
/*
|--------------------------------------------------------------------------
| Custom CKeditor configuration file
|--------------------------------------------------------------------------
| Define a custom CKeditor configuration file to instead of the one
| provided by default. This is useful if you wish to customise
| the toolbar and other possible options.
*/
'ckeditor-config-file-path' => '',
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
| You can customise the Middleware that should be loaded.
| The localizationRedirect middleware is automatically loaded for both
| Backend and Frontend routes.
*/
'middleware' => [
'backend' => [
'auth.admin',
],
'frontend' => [
],
'api' => [
'api',
],
],
/*
|--------------------------------------------------------------------------
| Define which assets will be available through the asset manager
|--------------------------------------------------------------------------
| These assets are registered on the asset manager
*/
'admin-assets' => [
// Css
'bootstrap.css' => ['theme' => 'vendor/bootstrap/dist/css/bootstrap.min.css'],
'alertify.core.css' => ['theme' => 'css/vendor/alertify/alertify.core.css'],
'alertify.default.css' => ['theme' => 'css/vendor/alertify/alertify.default.css'],
'dataTables.bootstrap.css' => ['theme' => 'vendor/datatables.net-bs/css/dataTables.bootstrap.min.css'],
'icheck.blue.css' => ['theme' => 'vendor/iCheck/skins/flat/blue.css'],
'AdminLTE.css' => ['theme' => 'vendor/admin-lte/dist/css/AdminLTE.css'],
'AdminLTE.all.skins.css' => ['theme' => 'vendor/admin-lte/dist/css/skins/_all-skins.min.css'],
'asgard.css' => ['theme' => 'css/asgard.css'],
//'gridstack.css' => ['module' => 'dashboard:vendor/gridstack/dist/gridstack.min.css'],
'gridstack.css' => ['module' => 'dashboard:gridstack/gridstack.min.css'],
'daterangepicker.css' => ['theme' => 'vendor/admin-lte/plugins/daterangepicker/daterangepicker-bs3.css'],
'selectize.css' => ['module' => 'core:vendor/selectize/dist/css/selectize.css'],
'selectize-default.css' => ['module' => 'core:vendor/selectize/dist/css/selectize.default.css'],
'animate.css' => ['theme' => 'vendor/animate.css/animate.min.css'],
'pace.css' => ['theme' => 'vendor/admin-lte/plugins/pace/pace.min.css'],
'simplemde.css' => ['theme' => 'vendor/simplemde/dist/simplemde.min.css'],
// Javascript
'bootstrap.js' => ['theme' => 'vendor/bootstrap/dist/js/bootstrap.min.js'],
'font-awesome.js' => ['cdn' => 'https://use.fontawesome.com/releases/v5.7.1/js/all.js'],
'font-awesome-v4-shims.js' => ['cdn' => 'https://use.fontawesome.com/releases/v5.7.1/js/v4-shims.js'],
'mousetrap.js' => ['theme' => 'js/vendor/mousetrap.min.js'],
'alertify.js' => ['theme' => 'js/vendor/alertify/alertify.js'],
'icheck.js' => ['theme' => 'vendor/iCheck/icheck.min.js'],
'jquery.dataTables.js' => ['theme' => 'vendor/datatables.net/js/jquery.dataTables.min.js'],
'dataTables.bootstrap.js' => ['theme' => 'vendor/datatables.net-bs/js/dataTables.bootstrap.min.js'],
'jquery.slug.js' => ['theme' => 'js/vendor/jquery.slug.js'],
'adminlte.js' => ['theme' => 'vendor/admin-lte/dist/js/adminlte.min.js'],
'keypressAction.js' => ['module' => 'core:js/keypressAction.js'],
'ckeditor.js' => ['theme' => 'js/vendor/ckeditor/ckeditor.js'],
'lodash.js' => ['module' => 'dashboard:vendor/lodash/lodash.min.js'],
'jquery-ui-core.js' => ['module' => 'dashboard:vendor/jquery-ui/ui/minified/core.min.js'],
'jquery-ui-widget.js' => ['module' => 'dashboard:vendor/jquery-ui/ui/minified/widget.min.js'],
'jquery-ui-mouse.js' => ['module' => 'dashboard:vendor/jquery-ui/ui/minified/mouse.min.js'],
'jquery-ui-draggable.js' => ['module' => 'dashboard:vendor/jquery-ui/ui/minified/draggable.min.js'],
'jquery-ui-resizable.js' => ['module' => 'dashboard:vendor/jquery-ui/ui/minified/resizable.min.js'],
//'gridstack.js' => ['module' => 'dashboard:vendor/gridstack/dist/gridstack.min.js'],
'gridstack.js' => ['module' => 'dashboard:gridstack/gridstack.min.js'],
'daterangepicker.js' => ['theme' => 'vendor/admin-lte/plugins/daterangepicker/daterangepicker.js'],
'selectize.js' => ['module' => 'core:vendor/selectize/dist/js/standalone/selectize.min.js'],
'main.js' => ['theme' => 'js/main.js'],
'chart.js' => ['theme' => 'vendor/admin-lte/plugins/chartjs/Chart.js'],
'pace.js' => ['theme' => 'vendor/admin-lte/plugins/pace/pace.min.js'],
'moment.js' => ['theme' => 'vendor/admin-lte/plugins/daterangepicker/moment.min.js'],
'clipboard.js' => ['theme' => 'vendor/clipboard/dist/clipboard.min.js'],
'simplemde.js' => ['theme' => 'vendor/simplemde/dist/simplemde.min.js'],
],
/*
|--------------------------------------------------------------------------
| Define which default assets will always be included in your pages
| through the asset pipeline
|--------------------------------------------------------------------------
*/
'admin-required-assets' => [
'css' => [
'bootstrap.css',
'dataTables.bootstrap.css',
'icheck.blue.css',
'AdminLTE.css',
'AdminLTE.all.skins.css',
'animate.css',
'pace.css',
'selectize-default.css',
'asgard.css',
],
'js' => [
'bootstrap.js',
'font-awesome.js',
'font-awesome-v4-shims.js',
'mousetrap.js',
'icheck.js',
'jquery.dataTables.js',
'dataTables.bootstrap.js',
'jquery.slug.js',
'keypressAction.js',
'adminlte.js',
'pace.js',
'selectize.js',
'main.js',
],
],
/*
|--------------------------------------------------------------------------
| Enable module view overrides at theme locations
|--------------------------------------------------------------------------
| By default you can only have module views in resources/views/asgard/[module]
| setting this setting to true will add ability for you to store those views
| in any of front or backend themes in my-theme/views/modules/[module]/...
|
| useViewNamespaces.backend-theme needs to be enabled at module level
*/
'enable-theme-overrides' => false,
/*
|--------------------------------------------------------------------------
| Check if asgard was installed
|--------------------------------------------------------------------------
*/
'is_installed' => env('INSTALLED', false),
];