-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathplatform.php
executable file
·321 lines (281 loc) · 11.3 KB
/
platform.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<?php
return [
/*
|--------------------------------------------------------------------------
| Sub-Domain Routing
|--------------------------------------------------------------------------
|
| This value represents the "domain name" associated with your application. This
| can be utilized to prevent dashboard internal routes from being registered
| on subdomains that do not require access to your admin application.
|
| For instance, you can use the admin dashboard on a separate subdomain like
| 'admin.example.com'.
|
*/
'domain' => env('DASHBOARD_DOMAIN', null),
/*
|--------------------------------------------------------------------------
| Route Prefixes
|--------------------------------------------------------------------------
|
| This prefix method can be used to specify the prefix of every route in
| the administrator dashboard. This way, you can easily change the path
| to a URL you find more appropriate. For instance: '/', '/admin', or '/panel'.
|
*/
'prefix' => env('DASHBOARD_PREFIX', '/orchid'),
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
|
| This middleware will be assigned to every route in the administration
| dashboard. You can add your custom middleware to this stack.
|
| For more information on middleware, please refer to:
| https://laravel.com/docs/middleware
|
*/
'middleware' => [
'public' => ['web', 'cache.headers:private;must_revalidate;etag'],
'private' => ['web', 'platform', 'cache.headers:private;must_revalidate;etag'],
],
/*
|--------------------------------------------------------------------------
| Guard
|--------------------------------------------------------------------------
|
| This option specifies the name of the guard that should be used for
| authentication when accessing the administration dashboard. If you are
| using a multi-auth setup, you can use this option to specify the
| guard that should be used for administrative routes. If you are
| not using the default guard, remember to add 'auth:guard_name'
| to the middleware list, where 'guard_name' is the name of the
| guard you want to use.
|
| You can learn more about Laravel authentication here:
| https://laravel.com/docs/authentication
|
*/
'guard' => config('auth.defaults.guard', 'web'),
/*
|--------------------------------------------------------------------------
| Authentication Page
|--------------------------------------------------------------------------
|
| This option controls the visibility of Orchid's built-in authentication pages.
| If you wish to use your own authentication pages (e.g., with Laravel Jetstream),
| you can disable Orchid's built-in authentication by setting this option to false.
|
| If your application consists entirely of an administration dashboard, and you need
| the following functions: forgot password, two-factor authentication, registration,
| please consider using https://github.com/orchidsoftware/fortify.
|
*/
'auth' => false,
/*
|--------------------------------------------------------------------------
| Main Route
|--------------------------------------------------------------------------
|
| This route is the starting page of the dashboard application. Users will be
| redirected to this page when they enter the dashboard or click on the
| dashboard's logo or links.
|
| Example: 'platform.main'
|
*/
'index' => 'platform.main',
/*
|--------------------------------------------------------------------------
| User Profile Route
|--------------------------------------------------------------------------
|
| This route is used to access the user profile page. It will be opened by
| users when they want to view or edit their profile information.
|
*/
'profile' => 'my',
/*
|--------------------------------------------------------------------------
| Dashboard Resource
|--------------------------------------------------------------------------
|
| This option is used to store links for stylesheets and scripts automatically
| connected to your dashboard. These can be local files or external URLs.
|
| Example: '/css/styles.css', 'https://example.com/scripts.js'
|
*/
'resource' => [
'stylesheets' => [],
'scripts' => [],
],
/*
|--------------------------------------------------------------------------
| Vite Resource
|--------------------------------------------------------------------------
|
| Within the 'vite' associative array, specify input files to be parsed by
| Vite by providing specific paths to JS and CSS assets. Here is an example:
|
| Example: ['resources/css/app.css', 'resources/js/app.js']
|
*/
'vite' => [],
/*
|--------------------------------------------------------------------------
| Template View
|--------------------------------------------------------------------------
|
| This configuration option is utilized to determine which templates will be displayed
| in the application and used on pages. It permits you to customize the part of
| the user interface that is suitable for specifying the name, logo, accompanying
| documents, and so on.
|
| Example: If your file exists at '/views/brand/header.blade.php', the value for
| the 'header' key should be 'brand.header'.
|
*/
'template' => [
'header' => '',
'footer' => '',
],
/*
|--------------------------------------------------------------------------
| Default Attachment Configuration
|--------------------------------------------------------------------------
|
| This option allows you to specify the default settings for file attachments
| in your application. You can customize the disk and file generator used
| for attachments.
|
| The 'disk' option specifies the default filesystem disk where attachments
| will be stored. The default value is 'public', but you can also specify
| a different disk such as 's3' if you have configured one.
|
| The 'generator' option specifies the default file generator class that
| will be used to generate unique filenames for attachments. The default
| value is \Orchid\Attachment\Engines\Generator::class, but you can
| specify a different class if you have created your own custom generator.
|
*/
'attachment' => [
'disk' => env('DASHBOARD_FILESYSTEM_DISK', 'public'),
'generator' => \Orchid\Attachment\Engines\Generator::class,
],
/*
|--------------------------------------------------------------------------
| Icons Path
|--------------------------------------------------------------------------
|
| Provide the path from your app to your SVG icons directory. This configuration
| permits you to specify the location of your SVG icons, which can be used in
| various parts of the application.
|
| Example: ['fa' => storage_path('app/fontawesome')]
|
*/
'icons' => [
'bs' => \Orchid\Support\BootstrapIconsPath::getFolder(),
],
/*
|--------------------------------------------------------------------------
| Notifications
|--------------------------------------------------------------------------
|
| Notifications are an excellent way to inform your users about what is
| happening in your application. These notifications can be viewed by
| clicking on the notification bell icon in the application's navigation bar.
| The notification bell will have an unread count indicator when there are
| unread announcements or notifications.
|
| By default, the interval for updating notifications is set to one minute.
*/
'notifications' => [
'enabled' => true,
'interval' => 60,
],
/*
|--------------------------------------------------------------------------
| Search
|--------------------------------------------------------------------------
|
| This configuration option determines which models will be searchable in the
| sidebar search feature. To be searchable, a model must have a Presenter and
| a Scout class defined for it.
|
| Example:
|
| 'search' => [
| \App\Models\User::class,
| \App\Models\Post::class,
| ],
|
*/
'search' => [
// \App\Models\User::class
],
/*
|--------------------------------------------------------------------------
| Hotwire Turbo
|--------------------------------------------------------------------------
|
| Turbo Drive maintains a cache of recently visited pages.
| This cache serves two purposes: to display pages without accessing
| the network during restoration visits, and to improve perceived
| performance by showing temporary previews during application visits.
|
*/
'turbo' => [
'cache' => true,
],
/*
|--------------------------------------------------------------------------
| Fallback Page
|--------------------------------------------------------------------------
|
| If the request does not match any route and arguments,
| Orchid will automatically generate its own 404 page.
| It can be disabled if you want to declare routes on the same
| domain and prefix or create your own page.
|
*/
'fallback' => true,
/*
|--------------------------------------------------------------------------
| Workspace
|--------------------------------------------------------------------------
|
| The workspace option sets the template that wraps the content of the screens.
| It determines whether the entire user screen will be used or whether
| the content will be compressed to a fixed width.
|
| Options: 'platform::workspace.compact', 'platform::workspace.full'
|
*/
'workspace' => 'platform::workspace.compact',
/*
|--------------------------------------------------------------------------
| Prevents Abandonment
|--------------------------------------------------------------------------
|
| This option determines whether the Prevents Abandonment feature is enabled
| or disabled for the application.
|
*/
'prevents_abandonment' => true,
/*
|--------------------------------------------------------------------------
| Service Provider
|--------------------------------------------------------------------------
|
| This value is a class namespace of the platform's service provider. You
| can override it to define a custom namespace. This may be useful if you
| want to place Orchid's service provider in a location different from
| "app/Orchid".
|
*/
'provider' => \App\Orchid\PlatformProvider::class,
];