-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathzeus-bolt.php
More file actions
129 lines (109 loc) · 3.64 KB
/
Copy pathzeus-bolt.php
File metadata and controls
129 lines (109 loc) · 3.64 KB
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
<?php
use LaraZeus\Bolt\Enums\FormsStatus;
use LaraZeus\Bolt\Mail\FormSubmission;
use LaraZeus\Bolt\Models\Category;
use LaraZeus\Bolt\Models\Collection;
use LaraZeus\Bolt\Models\Field;
use LaraZeus\Bolt\Models\FieldResponse;
use LaraZeus\Bolt\Models\Form;
use LaraZeus\Bolt\Models\Response;
use LaraZeus\Bolt\Models\Section;
return [
/**
* set the default domain.
*/
'domain' => null,
/**
* set the default path for the forms homepage.
*/
'prefix' => 'bolt',
/*
* set database table prefix
*/
'table-prefix' => 'bolt_',
/**
* the middleware you want to apply on all the blog routes
* for example if you want to make your blog for users only, add the middleware 'auth'.
*/
'middleware' => ['web'],
/**
* you can overwrite any model and use your own
* you can also configure the model per panel in your panel provider using:
* ->models([ ... ])
*/
'models' => [
'Category' => Category::class,
'Collection' => Collection::class,
'Field' => Field::class,
'FieldResponse' => FieldResponse::class,
'Form' => Form::class,
'Response' => Response::class,
'Section' => Section::class,
'User' => config('auth.providers.users.model'),
],
'enums' => [
'FormsStatus' => FormsStatus::class,
],
'collectors' => [
'fields' => [
'path' => 'app/Zeus/Fields',
'namespace' => '\\App\\Zeus\\Fields\\',
],
'dataSources' => [
'path' => 'app/Zeus/DataSources',
'namespace' => 'App\\Zeus\\DataSources\\',
],
],
'defaultMailable' => FormSubmission::class,
/*
* uploads on a `public` disk are readable by anyone holding the URL.
* point this at a private S3 disk if your forms collect anything sensitive.
*/
'uploadDisk' => env('BOLT_FILESYSTEM_DISK', 'public'),
'uploadDirectory' => env('BOLT_FILESYSTEM_DIRECTORY', 'forms'),
'uploadVisibility' => env('BOLT_FILESYSTEM_VISIBILITY', 'public'),
/*
* the extensions the `file upload` field accepts. anything else is rejected server side.
* adding to this list is a security decision: executables (`php`, `cgi`, `sh`, `exe`)
* risk code execution, and markup (`svg`, `html`, `js`) risks stored xss.
*/
'uploadAcceptedFileTypes' => [
'jpg', 'jpeg', 'png', 'gif', 'webp',
'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx',
'txt', 'csv', 'zip',
],
/*
* the maximum size, in kilobytes, for every `file upload` field that does not set
* its own. leave null to let livewire's own upload limit govern instead.
*/
'uploadMaxSize' => null,
/*
* if you have installed Bolt Pro, you can enable the presets here
*/
'show_presets' => false,
/**
* the preset comes with a demo forms:
* a Contact form and Ticket support form.
* if you dont want them, feel free to set this to false
* */
'show_core_presets' => true,
/**
* the preview for the presets is using sushi:
* you can enable/disable the cache here
* */
'should_cache_preset' => env('BOLT_CACHE_PRESET', true),
/*
* if you have installed Bolt Pro, you can enable the form design option here
*/
'allow_design' => false,
/**
* since `collections` or 'data sources' have many types, we cannot lazy load them
* but we cache them for a while to get better performance
* the key is: dataSource_*_response_md5
*
* here you can set the duration of the cache
*/
'cache' => [
'collection_values' => 30, // on seconds
],
];