]> BookStack Code Mirror - bookstack/blob - config/app.php
Added ability to configure email sender name
[bookstack] / config / app.php
1 <?php
2
3 return [
4
5     'env' => env('APP_ENV', 'production'),
6
7     'views' => [
8         'books' => env('APP_VIEWS_BOOKS', 'list')
9     ],
10
11     /*
12     |--------------------------------------------------------------------------
13     | Application Debug Mode
14     |--------------------------------------------------------------------------
15     |
16     | When your application is in debug mode, detailed error messages with
17     | stack traces will be shown on every error that occurs within your
18     | application. If disabled, a simple generic error page is shown.
19     |
20     */
21
22     'debug' => env('APP_DEBUG', false),
23
24     /*
25     |--------------------------------------------------------------------------
26     | Application URL
27     |--------------------------------------------------------------------------
28     |
29     | This URL is used by the console to properly generate URLs when using
30     | the Artisan command line tool. You should set this to the root of
31     | your application so that it is used when running Artisan tasks.
32     |
33     */
34
35     'url' => env('APP_URL', '') === 'http://bookstack.dev' ? '' : env('APP_URL', ''),
36
37     /*
38     |--------------------------------------------------------------------------
39     | Application Timezone
40     |--------------------------------------------------------------------------
41     |
42     | Here you may specify the default timezone for your application, which
43     | will be used by the PHP date and date-time functions. We have gone
44     | ahead and set this to a sensible default for you out of the box.
45     |
46     */
47
48     'timezone' => 'UTC',
49
50     /*
51     |--------------------------------------------------------------------------
52     | Application Locale Configuration
53     |--------------------------------------------------------------------------
54     |
55     | The application locale determines the default locale that will be used
56     | by the translation service provider. You are free to set this value
57     | to any of the locales which will be supported by the application.
58     |
59     */
60
61     'locale' => env('APP_LANG', 'en'),
62     'locales' => ['en', 'de', 'es', 'es_AR', 'fr', 'nl', 'pt_BR', 'sk', 'sv', 'ja', 'pl', 'it', 'ru', 'zh_CN'],
63
64     /*
65     |--------------------------------------------------------------------------
66     | Application Fallback Locale
67     |--------------------------------------------------------------------------
68     |
69     | The fallback locale determines the locale to use when the current one
70     | is not available. You may change the value to correspond to any of
71     | the language folders that are provided through your application.
72     |
73     */
74
75     'fallback_locale' => 'en',
76
77     /*
78     |--------------------------------------------------------------------------
79     | Encryption Key
80     |--------------------------------------------------------------------------
81     |
82     | This key is used by the Illuminate encrypter service and should be set
83     | to a random, 32 character string, otherwise these encrypted strings
84     | will not be safe. Please do this before deploying an application!
85     |
86     */
87
88     'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
89
90     'cipher' => 'AES-256-CBC',
91
92     /*
93     |--------------------------------------------------------------------------
94     | Logging Configuration
95     |--------------------------------------------------------------------------
96     |
97     | Here you may configure the log settings for your application. Out of
98     | the box, Laravel uses the Monolog PHP logging library. This gives
99     | you a variety of powerful log handlers / formatters to utilize.
100     |
101     | Available Settings: "single", "daily", "syslog", "errorlog"
102     |
103     */
104
105     'log' => env('APP_LOGGING', 'single'),
106
107     /*
108     |--------------------------------------------------------------------------
109     | Autoloaded Service Providers
110     |--------------------------------------------------------------------------
111     |
112     | The service providers listed here will be automatically loaded on the
113     | request to your application. Feel free to add your own services to
114     | this array to grant expanded functionality to your applications.
115     |
116     */
117
118     'providers' => [
119
120         /*
121          * Laravel Framework Service Providers...
122          */
123         Illuminate\Auth\AuthServiceProvider::class,
124         Illuminate\Broadcasting\BroadcastServiceProvider::class,
125         Illuminate\Bus\BusServiceProvider::class,
126         Illuminate\Cache\CacheServiceProvider::class,
127         Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
128         Illuminate\Cookie\CookieServiceProvider::class,
129         Illuminate\Database\DatabaseServiceProvider::class,
130         Illuminate\Encryption\EncryptionServiceProvider::class,
131         Illuminate\Filesystem\FilesystemServiceProvider::class,
132         Illuminate\Foundation\Providers\FoundationServiceProvider::class,
133         Illuminate\Hashing\HashServiceProvider::class,
134         Illuminate\Mail\MailServiceProvider::class,
135         Illuminate\Pipeline\PipelineServiceProvider::class,
136         Illuminate\Queue\QueueServiceProvider::class,
137         Illuminate\Redis\RedisServiceProvider::class,
138         Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
139         Illuminate\Session\SessionServiceProvider::class,
140         Illuminate\Translation\TranslationServiceProvider::class,
141         Illuminate\Validation\ValidationServiceProvider::class,
142         Illuminate\View\ViewServiceProvider::class,
143         Illuminate\Notifications\NotificationServiceProvider::class,
144         SocialiteProviders\Manager\ServiceProvider::class,
145
146         /**
147          * Third Party
148          */
149         Intervention\Image\ImageServiceProvider::class,
150         Barryvdh\DomPDF\ServiceProvider::class,
151         Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
152         Barryvdh\Debugbar\ServiceProvider::class,
153         Barryvdh\Snappy\ServiceProvider::class,
154
155
156         /*
157          * Application Service Providers...
158          */
159         BookStack\Providers\PaginationServiceProvider::class,
160
161         BookStack\Providers\AuthServiceProvider::class,
162         BookStack\Providers\AppServiceProvider::class,
163         BookStack\Providers\BroadcastServiceProvider::class,
164         BookStack\Providers\EventServiceProvider::class,
165         BookStack\Providers\RouteServiceProvider::class,
166         BookStack\Providers\CustomFacadeProvider::class,
167
168     ],
169
170     /*
171     |--------------------------------------------------------------------------
172     | Class Aliases
173     |--------------------------------------------------------------------------
174     |
175     | This array of class aliases will be registered when this application
176     | is started. However, feel free to register as many as you wish as
177     | the aliases are "lazy" loaded so they don't hinder performance.
178     |
179     */
180
181     'aliases' => [
182
183         'App'       => Illuminate\Support\Facades\App::class,
184         'Artisan'   => Illuminate\Support\Facades\Artisan::class,
185         'Auth'      => Illuminate\Support\Facades\Auth::class,
186         'Blade'     => Illuminate\Support\Facades\Blade::class,
187         'Bus'       => Illuminate\Support\Facades\Bus::class,
188         'Cache'     => Illuminate\Support\Facades\Cache::class,
189         'Config'    => Illuminate\Support\Facades\Config::class,
190         'Cookie'    => Illuminate\Support\Facades\Cookie::class,
191         'Crypt'     => Illuminate\Support\Facades\Crypt::class,
192         'DB'        => Illuminate\Support\Facades\DB::class,
193         'Eloquent'  => Illuminate\Database\Eloquent\Model::class,
194         'Event'     => Illuminate\Support\Facades\Event::class,
195         'File'      => Illuminate\Support\Facades\File::class,
196         'Hash'      => Illuminate\Support\Facades\Hash::class,
197         'Input'     => Illuminate\Support\Facades\Input::class,
198         'Inspiring' => Illuminate\Foundation\Inspiring::class,
199         'Lang'      => Illuminate\Support\Facades\Lang::class,
200         'Log'       => Illuminate\Support\Facades\Log::class,
201         'Mail'      => Illuminate\Support\Facades\Mail::class,
202         'Notification' => Illuminate\Support\Facades\Notification::class,
203         'Password'  => Illuminate\Support\Facades\Password::class,
204         'Queue'     => Illuminate\Support\Facades\Queue::class,
205         'Redirect'  => Illuminate\Support\Facades\Redirect::class,
206         'Redis'     => Illuminate\Support\Facades\Redis::class,
207         'Request'   => Illuminate\Support\Facades\Request::class,
208         'Response'  => Illuminate\Support\Facades\Response::class,
209         'Route'     => Illuminate\Support\Facades\Route::class,
210         'Schema'    => Illuminate\Support\Facades\Schema::class,
211         'Session'   => Illuminate\Support\Facades\Session::class,
212         'Storage'   => Illuminate\Support\Facades\Storage::class,
213         'URL'       => Illuminate\Support\Facades\URL::class,
214         'Validator' => Illuminate\Support\Facades\Validator::class,
215         'View'      => Illuminate\Support\Facades\View::class,
216         'Socialite' => Laravel\Socialite\Facades\Socialite::class,
217
218         /**
219          * Third Party
220          */
221
222         'ImageTool' => Intervention\Image\Facades\Image::class,
223         'DomPDF' => Barryvdh\DomPDF\Facade::class,
224         'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
225         'Debugbar'  => Barryvdh\Debugbar\Facade::class,
226
227         /**
228          * Custom
229          */
230
231         'Activity' => BookStack\Services\Facades\Activity::class,
232         'Setting'  => BookStack\Services\Facades\Setting::class,
233         'Views'    => BookStack\Services\Facades\Views::class,
234         'Images'   => \BookStack\Services\Facades\Images::class,
235
236     ],
237
238     'proxies' => env('APP_PROXIES', ''),
239
240 ];