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