1<?php
2
3use Illuminate\Support\Facades\Facade;
4use Illuminate\Support\ServiceProvider;
5
6return [
7
8 /*
9 |--------------------------------------------------------------------------
10 | Application Name
11 |--------------------------------------------------------------------------
12 |
13 | This value is the name of your application. This value is used when the
14 | framework needs to place the application's name in a notification or
15 | any other location as required by the application or its packages.
16 */
17
18 'name' => 'osu!web',
19
20 /*
21 |--------------------------------------------------------------------------
22 | Application Environment
23 |--------------------------------------------------------------------------
24 |
25 | This value determines the "environment" your application is currently
26 | running in. This may determine how you prefer to configure various
27 | services your application utilizes. Set this in your ".env" file.
28 |
29 */
30 'env' => env('APP_ENV', 'production'),
31
32 /*
33 |--------------------------------------------------------------------------
34 | Application Debug Mode
35 |--------------------------------------------------------------------------
36 |
37 | When your application is in debug mode, detailed error messages with
38 | stack traces will be shown on every error that occurs within your
39 | application. If disabled, a simple generic error page is shown.
40 |
41 */
42
43 'debug' => env('APP_DEBUG', false),
44
45 /*
46 |--------------------------------------------------------------------------
47 | Application URL
48 |--------------------------------------------------------------------------
49 |
50 | This URL is used by the console to properly generate URLs when using
51 | the Artisan command line tool. You should set this to the root of
52 | your application so that it is used when running Artisan tasks.
53 |
54 */
55
56 // Please check other uses of APP_URL when updating this.
57 'url' => rtrim(env('APP_URL', 'http://localhost'), '/'),
58
59 /*
60 |--------------------------------------------------------------------------
61 | Application Timezone
62 |--------------------------------------------------------------------------
63 |
64 | Here you may specify the default timezone for your application, which
65 | will be used by the PHP date and date-time functions. We have gone
66 | ahead and set this to a sensible default for you out of the box.
67 |
68 */
69
70 'timezone' => 'UTC',
71
72 /*
73 |--------------------------------------------------------------------------
74 | Application Locale Configuration
75 |--------------------------------------------------------------------------
76 |
77 | The application locale determines the default locale that will be used
78 | by the translation service provider. You are free to set this value
79 | to any of the locales which will be supported by the application.
80 |
81 */
82
83 'locale' => 'en',
84
85 /*
86 * Make sure to check locale name mapping for other components.
87 * carbon is in Http\Middleware\SetLocale (no helper... yet?).
88 * html, momentjs, and laravel are in LocaleMeta.
89 * php (IntlDateFormatter etc) isn't mapped at the moment.
90 * Check respective packages for supported list of languages.
91 *
92 * carbon: list in vendor/nesbot/carbon/src/Carbon/Lang/
93 * html: lang attribute in html tag. Mainly for uppercasing country code if used.
94 * laravel: list in vendor/laravel/framework/src/Illuminate/Translation/MessageSelector.php
95 * momentjs: list in node_modules/moment/locale/
96 */
97 'available_locales' => [
98 // separate the default
99 'en',
100
101 // sort by name
102 'ar',
103 'be',
104 'bg',
105 'ca',
106 'cs',
107 'da',
108 'de',
109 'el',
110 'es',
111 'fi',
112 'fil',
113 'fr',
114 'he',
115 'hu',
116 'id',
117 'it',
118 'ja',
119 'ko',
120 'lt',
121 'nl',
122 'no',
123 'pl',
124 'pt',
125 'pt-br',
126 'ro',
127 'ru',
128 'sk',
129 'sl',
130 'sr',
131 'sv',
132 'th',
133 'tr',
134 'uk',
135 'vi',
136 'zh',
137 'zh-tw',
138 ],
139
140 /*
141 |--------------------------------------------------------------------------
142 | Application Fallback Locale
143 |--------------------------------------------------------------------------
144 |
145 | The fallback locale determines the locale to use when the current one
146 | is not available. You may change the value to correspond to any of
147 | the language folders that are provided through your application.
148 |
149 */
150
151 'fallback_locale' => 'en',
152
153 /*
154 |--------------------------------------------------------------------------
155 | Encryption Key
156 |--------------------------------------------------------------------------
157 |
158 | This key is used by the Illuminate encrypter service and should be set
159 | to a random, 32 character string, otherwise these encrypted strings
160 | will not be safe. Please do this before deploying an application!
161 |
162 */
163
164 'key' => env('APP_KEY', 'base64:q7U5qyAkedR1F6UhN0SQlUxBpAMDyfHy3NNFkqmiMqA='),
165
166 'cipher' => 'AES-256-CBC',
167
168 /*
169 |--------------------------------------------------------------------------
170 | Autoloaded Service Providers
171 |--------------------------------------------------------------------------
172 |
173 | The service providers listed here will be automatically loaded on the
174 | request to your application. Feel free to add your own services to
175 | this array to grant expanded functionality to your applications.
176 |
177 */
178
179 'providers' => ServiceProvider::defaultProviders()->except([
180 Illuminate\Cookie\CookieServiceProvider::class,
181 Illuminate\Session\SessionServiceProvider::class,
182 ])->merge([
183 App\Providers\AppServiceProvider::class,
184 App\Providers\AuthServiceProvider::class,
185 // Override default migrate:fresh
186 App\Providers\MigrationServiceProvider::class,
187 App\Providers\PassportServiceProvider::class,
188 App\Providers\RouteServiceProvider::class,
189 // Override the session id naming (for redis key namespacing)
190 App\Providers\SessionServiceProvider::class,
191 // After DB transaction commit support
192 App\Providers\TransactionStateServiceProvider::class,
193
194 Mariuzzo\LaravelJsLocalization\LaravelJsLocalizationServiceProvider::class,
195 ])->toArray(),
196
197 /*
198 |--------------------------------------------------------------------------
199 | Class Aliases
200 |--------------------------------------------------------------------------
201 |
202 | This array of class aliases will be registered when this application
203 | is started. However, feel free to register as many as you wish as
204 | the aliases are "lazy" loaded so they don't hinder performance.
205 |
206 */
207
208 'aliases' => Facade::defaultAliases()->merge([
209 // renamed to avoid conflict with PhpRedis
210 'LaravelRedis' => Illuminate\Support\Facades\Redis::class,
211
212 'GitHub' => GrahamCampbell\GitHub\Facades\GitHub::class,
213
214 'Datadog' => ChaseConey\LaravelDatadogHelper\Datadog::class,
215 ])->toArray(),
216
217];