2015-02-05 21:39:52 -06:00
|
|
|
<?php
|
2017-10-21 01:40:00 -05:00
|
|
|
/**
|
|
|
|
* app.php
|
2020-03-17 11:06:30 -05:00
|
|
|
* Copyright (c) 2019 james@firefly-iii.org.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2017-10-21 01:40:00 -05:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2019-10-01 23:38:00 -05:00
|
|
|
* GNU Affero General Public License for more details.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2017-10-21 01:40:00 -05:00
|
|
|
*/
|
|
|
|
|
2017-09-14 10:40:02 -05:00
|
|
|
declare(strict_types=1);
|
2019-08-10 08:09:44 -05:00
|
|
|
|
2023-05-29 06:56:55 -05:00
|
|
|
use FireflyIII\Support\Facades\AccountForm;
|
|
|
|
use FireflyIII\Support\Facades\Amount;
|
|
|
|
use FireflyIII\Support\Facades\CurrencyForm;
|
|
|
|
use FireflyIII\Support\Facades\ExpandedForm;
|
|
|
|
use FireflyIII\Support\Facades\FireflyConfig;
|
|
|
|
use FireflyIII\Support\Facades\Navigation;
|
|
|
|
use FireflyIII\Support\Facades\PiggyBankForm;
|
|
|
|
use FireflyIII\Support\Facades\Preferences;
|
|
|
|
use FireflyIII\Support\Facades\RuleForm;
|
|
|
|
use FireflyIII\Support\Facades\Steam;
|
|
|
|
|
2015-02-05 21:39:52 -06:00
|
|
|
return [
|
2018-04-26 23:26:37 -05:00
|
|
|
'name' => envNonEmpty('APP_NAME', 'Firefly III'),
|
2019-10-13 04:45:31 -05:00
|
|
|
'env' => envNonEmpty('APP_ENV', 'local'),
|
2016-11-12 13:41:15 -06:00
|
|
|
'debug' => env('APP_DEBUG', false),
|
2018-04-26 23:26:37 -05:00
|
|
|
'url' => envNonEmpty('APP_URL', 'http://localhost'),
|
|
|
|
'timezone' => envNonEmpty('TZ', 'UTC'),
|
2020-01-31 00:39:24 -06:00
|
|
|
'locale' => envNonEmpty('DEFAULT_LANGUAGE', 'en_US'),
|
2015-12-19 13:54:27 -06:00
|
|
|
'fallback_locale' => 'en_US',
|
2017-11-27 12:07:57 -06:00
|
|
|
'key' => env('APP_KEY'),
|
2016-11-12 13:41:15 -06:00
|
|
|
'cipher' => 'AES-256-CBC',
|
|
|
|
'providers' => [
|
2023-12-20 12:39:53 -06:00
|
|
|
// Laravel Framework Service Providers...
|
2016-01-08 07:28:59 -06:00
|
|
|
Illuminate\Auth\AuthServiceProvider::class,
|
|
|
|
Illuminate\Broadcasting\BroadcastServiceProvider::class,
|
|
|
|
Illuminate\Bus\BusServiceProvider::class,
|
|
|
|
Illuminate\Cache\CacheServiceProvider::class,
|
|
|
|
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
|
|
|
|
Illuminate\Cookie\CookieServiceProvider::class,
|
|
|
|
Illuminate\Database\DatabaseServiceProvider::class,
|
|
|
|
Illuminate\Encryption\EncryptionServiceProvider::class,
|
|
|
|
Illuminate\Filesystem\FilesystemServiceProvider::class,
|
|
|
|
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
|
|
|
|
Illuminate\Hashing\HashServiceProvider::class,
|
|
|
|
Illuminate\Mail\MailServiceProvider::class,
|
2016-09-15 23:19:40 -05:00
|
|
|
Illuminate\Notifications\NotificationServiceProvider::class,
|
2016-01-08 07:28:59 -06:00
|
|
|
Illuminate\Pagination\PaginationServiceProvider::class,
|
|
|
|
Illuminate\Pipeline\PipelineServiceProvider::class,
|
|
|
|
Illuminate\Queue\QueueServiceProvider::class,
|
|
|
|
Illuminate\Redis\RedisServiceProvider::class,
|
|
|
|
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
|
2017-10-28 00:31:12 -05:00
|
|
|
FireflyIII\Providers\SessionServiceProvider::class,
|
2016-01-08 07:28:59 -06:00
|
|
|
Illuminate\Translation\TranslationServiceProvider::class,
|
|
|
|
Illuminate\Validation\ValidationServiceProvider::class,
|
|
|
|
Illuminate\View\ViewServiceProvider::class,
|
2017-02-05 11:44:37 -06:00
|
|
|
|
2023-12-20 12:39:53 -06:00
|
|
|
// Package Service Providers...
|
2015-04-28 01:58:01 -05:00
|
|
|
|
2023-12-20 12:39:53 -06:00
|
|
|
// Application Service Providers...
|
2016-01-08 07:28:59 -06:00
|
|
|
FireflyIII\Providers\AppServiceProvider::class,
|
|
|
|
FireflyIII\Providers\AuthServiceProvider::class,
|
2016-09-15 23:19:40 -05:00
|
|
|
// FireflyIII\Providers\BroadcastServiceProvider::class,
|
2016-01-08 07:28:59 -06:00
|
|
|
FireflyIII\Providers\EventServiceProvider::class,
|
|
|
|
FireflyIII\Providers\RouteServiceProvider::class,
|
2016-03-03 01:31:18 -06:00
|
|
|
|
2016-01-08 07:28:59 -06:00
|
|
|
// own stuff:
|
2017-12-23 10:51:45 -06:00
|
|
|
PragmaRX\Google2FALaravel\ServiceProvider::class,
|
2019-12-28 02:44:56 -06:00
|
|
|
TwigBridge\ServiceProvider::class,
|
2017-12-23 13:46:52 -06:00
|
|
|
|
2023-12-20 12:39:53 -06:00
|
|
|
// More service providers.
|
2016-07-23 14:37:06 -05:00
|
|
|
FireflyIII\Providers\AccountServiceProvider::class,
|
|
|
|
FireflyIII\Providers\AttachmentServiceProvider::class,
|
|
|
|
FireflyIII\Providers\BillServiceProvider::class,
|
|
|
|
FireflyIII\Providers\BudgetServiceProvider::class,
|
|
|
|
FireflyIII\Providers\CategoryServiceProvider::class,
|
2016-12-11 09:25:46 -06:00
|
|
|
FireflyIII\Providers\CurrencyServiceProvider::class,
|
2017-09-10 01:30:27 -05:00
|
|
|
FireflyIII\Providers\FireflyServiceProvider::class,
|
2016-07-23 14:37:06 -05:00
|
|
|
FireflyIII\Providers\JournalServiceProvider::class,
|
|
|
|
FireflyIII\Providers\PiggyBankServiceProvider::class,
|
|
|
|
FireflyIII\Providers\RuleServiceProvider::class,
|
|
|
|
FireflyIII\Providers\RuleGroupServiceProvider::class,
|
2016-11-06 07:52:31 -06:00
|
|
|
FireflyIII\Providers\SearchServiceProvider::class,
|
2016-07-23 14:37:06 -05:00
|
|
|
FireflyIII\Providers\TagServiceProvider::class,
|
2017-08-21 00:13:03 -05:00
|
|
|
FireflyIII\Providers\AdminServiceProvider::class,
|
2018-06-10 09:59:03 -05:00
|
|
|
FireflyIII\Providers\RecurringServiceProvider::class,
|
2015-02-06 00:23:26 -06:00
|
|
|
],
|
2017-09-10 01:30:27 -05:00
|
|
|
'aliases' => [
|
2016-11-12 13:41:15 -06:00
|
|
|
'App' => Illuminate\Support\Facades\App::class,
|
|
|
|
'Artisan' => Illuminate\Support\Facades\Artisan::class,
|
|
|
|
'Auth' => Illuminate\Support\Facades\Auth::class,
|
|
|
|
'Blade' => Illuminate\Support\Facades\Blade::class,
|
2017-01-30 09:30:35 -06:00
|
|
|
'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
|
|
|
|
'Bus' => Illuminate\Support\Facades\Bus::class,
|
2016-11-12 13:41:15 -06:00
|
|
|
'Cache' => Illuminate\Support\Facades\Cache::class,
|
|
|
|
'Config' => Illuminate\Support\Facades\Config::class,
|
|
|
|
'Cookie' => Illuminate\Support\Facades\Cookie::class,
|
|
|
|
'Crypt' => Illuminate\Support\Facades\Crypt::class,
|
|
|
|
'DB' => Illuminate\Support\Facades\DB::class,
|
|
|
|
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
|
|
|
|
'Event' => Illuminate\Support\Facades\Event::class,
|
|
|
|
'File' => Illuminate\Support\Facades\File::class,
|
|
|
|
'Gate' => Illuminate\Support\Facades\Gate::class,
|
|
|
|
'Hash' => Illuminate\Support\Facades\Hash::class,
|
|
|
|
'Lang' => Illuminate\Support\Facades\Lang::class,
|
|
|
|
'Log' => Illuminate\Support\Facades\Log::class,
|
|
|
|
'Mail' => Illuminate\Support\Facades\Mail::class,
|
|
|
|
'Notification' => Illuminate\Support\Facades\Notification::class,
|
|
|
|
'Password' => Illuminate\Support\Facades\Password::class,
|
|
|
|
'Queue' => Illuminate\Support\Facades\Queue::class,
|
|
|
|
'Redirect' => Illuminate\Support\Facades\Redirect::class,
|
|
|
|
'Redis' => Illuminate\Support\Facades\Redis::class,
|
|
|
|
'Request' => Illuminate\Support\Facades\Request::class,
|
|
|
|
'Response' => Illuminate\Support\Facades\Response::class,
|
|
|
|
'Route' => Illuminate\Support\Facades\Route::class,
|
|
|
|
'Schema' => Illuminate\Support\Facades\Schema::class,
|
|
|
|
'Session' => Illuminate\Support\Facades\Session::class,
|
|
|
|
'Storage' => Illuminate\Support\Facades\Storage::class,
|
|
|
|
'URL' => Illuminate\Support\Facades\URL::class,
|
|
|
|
'Validator' => Illuminate\Support\Facades\Validator::class,
|
|
|
|
'View' => Illuminate\Support\Facades\View::class,
|
2023-06-04 08:16:17 -05:00
|
|
|
'Html' => Spatie\Html\Facades\Html::class,
|
2023-05-29 06:56:55 -05:00
|
|
|
'Preferences' => Preferences::class,
|
|
|
|
'FireflyConfig' => FireflyConfig::class,
|
|
|
|
'Navigation' => Navigation::class,
|
|
|
|
'Amount' => Amount::class,
|
|
|
|
'Steam' => Steam::class,
|
|
|
|
'ExpandedForm' => ExpandedForm::class,
|
|
|
|
'CurrencyForm' => CurrencyForm::class,
|
|
|
|
'AccountForm' => AccountForm::class,
|
|
|
|
'PiggyBankForm' => PiggyBankForm::class,
|
|
|
|
'RuleForm' => RuleForm::class,
|
2017-12-23 13:46:52 -06:00
|
|
|
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
|
2020-01-31 00:39:24 -06:00
|
|
|
'Twig' => TwigBridge\Facade\Twig::class,
|
2017-12-23 13:46:52 -06:00
|
|
|
|
2024-01-01 07:45:51 -06:00
|
|
|
'Arr' => Illuminate\Support\Arr::class,
|
|
|
|
'Http' => Illuminate\Support\Facades\Http::class,
|
|
|
|
'Str' => Illuminate\Support\Str::class,
|
2015-02-06 00:23:26 -06:00
|
|
|
],
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2024-01-01 07:45:51 -06:00
|
|
|
'asset_url' => env('ASSET_URL', null),
|
2020-06-06 15:25:52 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Faker Locale
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This locale will be used by the Faker PHP library when generating fake
|
|
|
|
| data for your database seeds. For example, this will be used to get
|
|
|
|
| localized telephone numbers, street address information and more.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-01-01 07:45:51 -06:00
|
|
|
'faker_locale' => 'en_US',
|
2015-02-05 21:39:52 -06:00
|
|
|
];
|