]> BookStack Code Mirror - bookstack/blob - config/app.php
Merge pull request #3 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
62     /*
63     |--------------------------------------------------------------------------
64     | Application Fallback Locale
65     |--------------------------------------------------------------------------
66     |
67     | The fallback locale determines the locale to use when the current one
68     | is not available. You may change the value to correspond to any of
69     | the language folders that are provided through your application.
70     |
71     */
72
73     'fallback_locale' => 'en',
74
75     /*
76     |--------------------------------------------------------------------------
77     | Encryption Key
78     |--------------------------------------------------------------------------
79     |
80     | This key is used by the Illuminate encrypter service and should be set
81     | to a random, 32 character string, otherwise these encrypted strings
82     | will not be safe. Please do this before deploying an application!
83     |
84     */
85
86     'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
87
88     'cipher' => 'AES-256-CBC',
89
90     /*
91     |--------------------------------------------------------------------------
92     | Logging Configuration
93     |--------------------------------------------------------------------------
94     |
95     | Here you may configure the log settings for your application. Out of
96     | the box, Laravel uses the Monolog PHP logging library. This gives
97     | you a variety of powerful log handlers / formatters to utilize.
98     |
99     | Available Settings: "single", "daily", "syslog", "errorlog"
100     |
101     */
102
103     'log' => 'single',
104
105     /*
106     |--------------------------------------------------------------------------
107     | Autoloaded Service Providers
108     |--------------------------------------------------------------------------
109     |
110     | The service providers listed here will be automatically loaded on the
111     | request to your application. Feel free to add your own services to
112     | this array to grant expanded functionality to your applications.
113     |
114     */
115
116     'providers' => [
117
118         /*
119          * Laravel Framework Service Providers...
120          */
121         Illuminate\Auth\AuthServiceProvider::class,
122         Illuminate\Broadcasting\BroadcastServiceProvider::class,
123         Illuminate\Bus\BusServiceProvider::class,
124         Illuminate\Cache\CacheServiceProvider::class,
125         Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
126         Illuminate\Cookie\CookieServiceProvider::class,
127         Illuminate\Database\DatabaseServiceProvider::class,
128         Illuminate\Encryption\EncryptionServiceProvider::class,
129         Illuminate\Filesystem\FilesystemServiceProvider::class,
130         Illuminate\Foundation\Providers\FoundationServiceProvider::class,
131         Illuminate\Hashing\HashServiceProvider::class,
132         Illuminate\Mail\MailServiceProvider::class,
133         Illuminate\Pipeline\PipelineServiceProvider::class,
134         Illuminate\Queue\QueueServiceProvider::class,
135         Illuminate\Redis\RedisServiceProvider::class,
136         Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
137         Illuminate\Session\SessionServiceProvider::class,
138         Illuminate\Translation\TranslationServiceProvider::class,
139         Illuminate\Validation\ValidationServiceProvider::class,
140         Illuminate\View\ViewServiceProvider::class,
141         Illuminate\Notifications\NotificationServiceProvider::class,
142         Laravel\Socialite\SocialiteServiceProvider::class,
143
144         /**
145          * Third Party
146          */
147         Intervention\Image\ImageServiceProvider::class,
148         Barryvdh\DomPDF\ServiceProvider::class,
149         Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
150         Barryvdh\Debugbar\ServiceProvider::class,
151         Barryvdh\Snappy\ServiceProvider::class,
152
153
154         /*
155          * Application Service Providers...
156          */
157         BookStack\Providers\PaginationServiceProvider::class,
158
159         BookStack\Providers\AuthServiceProvider::class,
160         BookStack\Providers\AppServiceProvider::class,
161         BookStack\Providers\BroadcastServiceProvider::class,
162         BookStack\Providers\EventServiceProvider::class,
163         BookStack\Providers\RouteServiceProvider::class,
164         BookStack\Providers\CustomFacadeProvider::class,
165
166     ],
167
168     /*
169     |--------------------------------------------------------------------------
170     | Class Aliases
171     |--------------------------------------------------------------------------
172     |
173     | This array of class aliases will be registered when this application
174     | is started. However, feel free to register as many as you wish as
175     | the aliases are "lazy" loaded so they don't hinder performance.
176     |
177     */
178
179     'aliases' => [
180
181         'App'       => Illuminate\Support\Facades\App::class,
182         'Artisan'   => Illuminate\Support\Facades\Artisan::class,
183         'Auth'      => Illuminate\Support\Facades\Auth::class,
184         'Blade'     => Illuminate\Support\Facades\Blade::class,
185         'Bus'       => Illuminate\Support\Facades\Bus::class,
186         'Cache'     => Illuminate\Support\Facades\Cache::class,
187         'Config'    => Illuminate\Support\Facades\Config::class,
188         'Cookie'    => Illuminate\Support\Facades\Cookie::class,
189         'Crypt'     => Illuminate\Support\Facades\Crypt::class,
190         'DB'        => Illuminate\Support\Facades\DB::class,
191         'Eloquent'  => Illuminate\Database\Eloquent\Model::class,
192         'Event'     => Illuminate\Support\Facades\Event::class,
193         'File'      => Illuminate\Support\Facades\File::class,
194         'Hash'      => Illuminate\Support\Facades\Hash::class,
195         'Input'     => Illuminate\Support\Facades\Input::class,
196         'Inspiring' => Illuminate\Foundation\Inspiring::class,
197         'Lang'      => Illuminate\Support\Facades\Lang::class,
198         'Log'       => Illuminate\Support\Facades\Log::class,
199         'Mail'      => Illuminate\Support\Facades\Mail::class,
200         'Notification' => Illuminate\Support\Facades\Notification::class,
201         'Password'  => Illuminate\Support\Facades\Password::class,
202         'Queue'     => Illuminate\Support\Facades\Queue::class,
203         'Redirect'  => Illuminate\Support\Facades\Redirect::class,
204         'Redis'     => Illuminate\Support\Facades\Redis::class,
205         'Request'   => Illuminate\Support\Facades\Request::class,
206         'Response'  => Illuminate\Support\Facades\Response::class,
207         'Route'     => Illuminate\Support\Facades\Route::class,
208         'Schema'    => Illuminate\Support\Facades\Schema::class,
209         'Session'   => Illuminate\Support\Facades\Session::class,
210         'Storage'   => Illuminate\Support\Facades\Storage::class,
211         'URL'       => Illuminate\Support\Facades\URL::class,
212         'Validator' => Illuminate\Support\Facades\Validator::class,
213         'View'      => Illuminate\Support\Facades\View::class,
214         'Socialite' => Laravel\Socialite\Facades\Socialite::class,
215
216         /**
217          * Third Party
218          */
219
220         'ImageTool' => Intervention\Image\Facades\Image::class,
221         'PDF' => Barryvdh\DomPDF\Facade::class,
222         'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
223         'Debugbar'  => Barryvdh\Debugbar\Facade::class,
224
225         /**
226          * Custom
227          */
228
229         'Activity' => BookStack\Services\Facades\Activity::class,
230         'Setting'  => BookStack\Services\Facades\Setting::class,
231         'Views'    => BookStack\Services\Facades\Views::class,
232         'Images'   => \BookStack\Services\Facades\Images::class,
233
234     ],
235
236 ];