2016-02-29 15:59:36 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Application Environment
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This value determines the "environment" your application is currently
|
|
|
|
|
| running in. This may determine how you prefer to configure various
|
|
|
|
|
| services your application utilizes. Set this in your ".env" file.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-25 06:52:41 +00:00
|
|
|
'env' => env('APP_ENV', 'local'),
|
2016-03-30 00:30:02 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Application Debug Mode
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| When your application is in debug mode, detailed error messages with
|
|
|
|
|
| stack traces will be shown on every error that occurs within your
|
|
|
|
|
| application. If disabled, a simple generic error page is shown.
|
|
|
|
|
|
|
|
|
|
|
*/
|
2016-02-29 15:59:36 +00:00
|
|
|
|
2018-12-10 07:31:47 +00:00
|
|
|
'debug' => env('APP_DEBUG', true),
|
2016-03-30 00:30:02 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Application URL
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This URL is used by the console to properly generate URLs when using
|
|
|
|
|
| the Artisan command line tool. You should set this to the root of
|
|
|
|
|
| your application so that it is used when running Artisan tasks.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2020-05-07 08:38:20 +00:00
|
|
|
'url' => env('APP_URL', 'https://bilettm.com'),
|
2016-03-30 00:30:02 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Application Timezone
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Here you may specify the default timezone for your application, which
|
|
|
|
|
| will be used by the PHP date and date-time functions. We have gone
|
|
|
|
|
| ahead and set this to a sensible default for you out of the box.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-16 13:04:50 +00:00
|
|
|
'timezone' => env('TIMEZONE', 'Asia/Ashgabat'),
|
2016-03-30 00:30:02 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Application Locale Configuration
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| The application locale determines the default locale that will be used
|
|
|
|
|
| by the translation service provider. You are free to set this value
|
|
|
|
|
| to any of the locales which will be supported by the application.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-16 11:26:11 +00:00
|
|
|
'locale' => 'ru',
|
2019-11-26 07:36:32 +00:00
|
|
|
'locales' => ['tk', 'ru'],
|
2016-03-30 00:30:02 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Application Fallback Locale
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| The fallback locale determines the locale to use when the current one
|
|
|
|
|
| is not available. You may change the value to correspond to any of
|
|
|
|
|
| the language folders that are provided through your application.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
'fallback_locale' => 'en',
|
2016-03-30 00:30:02 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Encryption Key
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This key is used by the Illuminate encrypter service and should be set
|
|
|
|
|
| to a random, 32 character string, otherwise these encrypted strings
|
|
|
|
|
| will not be safe. Please do this before deploying an application!
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2018-09-11 09:51:58 +00:00
|
|
|
'key' => env('APP_KEY'),
|
|
|
|
|
'cipher' => env('APP_CIPHER', 'AES-256-CBC'),
|
2016-03-30 00:30:02 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Logging Configuration
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Here you may configure the log settings for your application. Out of
|
|
|
|
|
| the box, Laravel uses the Monolog PHP logging library. This gives
|
|
|
|
|
| you a variety of powerful log handlers / formatters to utilize.
|
|
|
|
|
|
|
|
|
|
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2016-05-21 18:23:18 +00:00
|
|
|
'log' => env('LOG', 'errorlog'),
|
2016-03-30 00:30:02 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Autoloaded Service Providers
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| The service providers listed here will be automatically loaded on the
|
|
|
|
|
| request to your application. Feel free to add your own services to
|
|
|
|
|
| this array to grant expanded functionality to your applications.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
'providers' => [
|
|
|
|
|
|
|
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
* Laravel Framework Service Providers...
|
|
|
|
|
*/
|
2016-03-10 13:41:19 +00:00
|
|
|
Illuminate\Auth\AuthServiceProvider::class,
|
2016-03-30 00:30:02 +00:00
|
|
|
Illuminate\Broadcasting\BroadcastServiceProvider::class,
|
2016-03-10 13:41:19 +00:00
|
|
|
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,
|
|
|
|
|
Illuminate\Pagination\PaginationServiceProvider::class,
|
|
|
|
|
Illuminate\Pipeline\PipelineServiceProvider::class,
|
|
|
|
|
Illuminate\Queue\QueueServiceProvider::class,
|
|
|
|
|
Illuminate\Redis\RedisServiceProvider::class,
|
|
|
|
|
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
|
|
|
|
|
Illuminate\Session\SessionServiceProvider::class,
|
|
|
|
|
Illuminate\Translation\TranslationServiceProvider::class,
|
|
|
|
|
Illuminate\Validation\ValidationServiceProvider::class,
|
|
|
|
|
Illuminate\View\ViewServiceProvider::class,
|
2018-10-02 15:29:57 +00:00
|
|
|
Illuminate\Notifications\NotificationServiceProvider::class,
|
2016-03-06 17:59:19 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
|
|
|
|
* Application Service Providers...
|
|
|
|
|
*/
|
2016-03-10 13:41:19 +00:00
|
|
|
App\Providers\AppServiceProvider::class,
|
2016-03-30 00:30:02 +00:00
|
|
|
App\Providers\AuthServiceProvider::class,
|
2016-03-10 13:41:19 +00:00
|
|
|
App\Providers\EventServiceProvider::class,
|
|
|
|
|
App\Providers\RouteServiceProvider::class,
|
2016-03-30 13:39:18 +00:00
|
|
|
App\Providers\HelpersServiceProvider::class,
|
|
|
|
|
Collective\Html\HtmlServiceProvider::class,
|
2016-02-29 15:59:36 +00:00
|
|
|
|
2016-03-10 13:41:19 +00:00
|
|
|
/*
|
|
|
|
|
* Third Party Service Providers...
|
|
|
|
|
*/
|
|
|
|
|
Vinelab\Http\HttpServiceProvider::class,
|
|
|
|
|
Milon\Barcode\BarcodeServiceProvider::class,
|
|
|
|
|
Intervention\Image\ImageServiceProvider::class,
|
|
|
|
|
Maatwebsite\Excel\ExcelServiceProvider::class,
|
|
|
|
|
Laravel\Socialite\SocialiteServiceProvider::class,
|
|
|
|
|
Nitmedia\Wkhtml2pdf\L5Wkhtml2pdfServiceProvider::class,
|
|
|
|
|
Mews\Purifier\PurifierServiceProvider::class,
|
|
|
|
|
MaxHoffmann\Parsedown\ParsedownServiceProvider::class,
|
|
|
|
|
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
|
2016-03-30 01:37:38 +00:00
|
|
|
Laracasts\Utilities\JavaScript\JavaScriptServiceProvider::class,
|
2019-09-11 14:33:07 +00:00
|
|
|
Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider::class,
|
2020-02-13 15:20:40 +00:00
|
|
|
Jenssegers\Agent\AgentServiceProvider::class,
|
2016-02-29 15:59:36 +00:00
|
|
|
],
|
2016-03-30 00:30:02 +00:00
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
/*
|
2016-03-30 00:30:02 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Class Aliases
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This array of class aliases will be registered when this application
|
|
|
|
|
| is started. However, feel free to register as many as you wish as
|
|
|
|
|
| the aliases are "lazy" loaded so they don't hinder performance.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2016-02-29 15:59:36 +00:00
|
|
|
'aliases' => [
|
|
|
|
|
|
2016-03-10 13:41:19 +00: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,
|
|
|
|
|
'Bus' => Illuminate\Support\Facades\Bus::class,
|
|
|
|
|
'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,
|
2016-06-15 10:14:27 +00:00
|
|
|
'LaravelEvent' => Illuminate\Support\Facades\Event::class,
|
2016-03-10 13:41:19 +00:00
|
|
|
'File' => Illuminate\Support\Facades\File::class,
|
|
|
|
|
'Hash' => Illuminate\Support\Facades\Hash::class,
|
|
|
|
|
'Input' => Illuminate\Support\Facades\Input::class,
|
|
|
|
|
'Inspiring' => Illuminate\Foundation\Inspiring::class,
|
|
|
|
|
'Lang' => Illuminate\Support\Facades\Lang::class,
|
|
|
|
|
'Log' => Illuminate\Support\Facades\Log::class,
|
|
|
|
|
'Mail' => Illuminate\Support\Facades\Mail::class,
|
|
|
|
|
'Password' => Illuminate\Support\Facades\Password::class,
|
2018-10-02 15:29:57 +00:00
|
|
|
'Notification' => Illuminate\Support\Facades\Notification::class,
|
2016-03-10 13:41:19 +00:00
|
|
|
'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,
|
2016-03-30 13:39:18 +00:00
|
|
|
'Form' => Collective\Html\FormFacade::class,
|
|
|
|
|
'HTML' => Collective\Html\HtmlFacade::class,
|
2016-03-10 13:41:19 +00:00
|
|
|
'Str' => Illuminate\Support\Str::class,
|
|
|
|
|
'Utils' => App\Attendize\Utils::class,
|
|
|
|
|
'Carbon' => Carbon\Carbon::class,
|
|
|
|
|
'PDF' => Nitmedia\Wkhtml2pdf\Facades\Wkhtml2pdf::class,
|
|
|
|
|
'DNS1D' => Milon\Barcode\Facades\DNS1DFacade::class,
|
|
|
|
|
'DNS2D' => Milon\Barcode\Facades\DNS2DFacade::class,
|
|
|
|
|
'Image' => Intervention\Image\Facades\Image::class,
|
|
|
|
|
'Excel' => Maatwebsite\Excel\Facades\Excel::class,
|
|
|
|
|
'Socialize' => Laravel\Socialite\Facades\Socialite::class,
|
|
|
|
|
'HttpClient' => Vinelab\Http\Facades\Client::class,
|
|
|
|
|
'Purifier' => Mews\Purifier\Facades\Purifier::class,
|
|
|
|
|
'Markdown' => MaxHoffmann\Parsedown\ParsedownFacade::class,
|
2020-05-07 08:38:20 +00:00
|
|
|
// 'Omnipay' => Omnipay\Omnipay::class,
|
(localization) Several big changes:
1) Added localization components to the package. They allow usage of localized routes, like http://attendize.site/en/login
2) Added English and Polish localization files. They are ugly, repetitive, but mostly true to the original and relevant. It required rewriting several phrases, and certainly required editing most of the views and controllers.
3) Edited routes to accomodate point 1
4) Rewritten several rules regarding dates. In most cases using English notation (with English names for months) is bad in all other languages. I used environment wide date format that is used.
5) Updated installer. Haven't tested it yet, but should work. Rewrites .env.example file instead of creating it from scratch (by concatenating strings).
There are some minor changes that were simple fixes or other funky requirements from my employer that kinda make sense:
1) QR code reader wasn't working in firefox, fixed it. Works in chrome/firefox on mobile on https sites.
2) Added subscript text in some instances: below ticket registration, below ticket. It is kinda dumb, but in most cases is necessary to receive less complaints from clients.
3) Fixed geocoding api by adding api key in env file. At some point in 2016-2017 it was required by google to use API key from developer console and this requirement wasn't challenged in the code.
4) Ticket has been displaying either flyer or site logo on the side. Now displays both (which may affect 1d barcode - it might need some fixin). Regarding the same issue - description of an event contained the flyer image on the side, it was removed, cause it didn't fit in here.
5) Ticket style was updated, because of the above and because it didn't fit longer character strings. Now it's slightly uglier, but works in all cases.
and other.
There are also some inconveniences, like:
1) Unfinished translations. It was impossible for me to create translations based on strings located inside of a database, which I ignored (I think it's only at one place - surveys).
2) Ugly translation files. At some point I thought it is going to be easier to locate when I try translating vased by file name. Later I divided it by topics, and then I segmented it even more. It might require some serious clean-up.
3) Redundancy. In some cases there are several definitions for the same phrase in my localization files. I used it mostly to protect myself from different contexts for the phrase usage in different languages.
4) File division. There are several files that are placed in dedicated language directory (in /view/, like /view/pl/ or /view/en/). These files don't use language phrases, but they are translated as a whole. Mostly because using language phrases would make those view files unreadable.
5) Localzation helper marks some phrases as obsolete (in file "basic"), because they are used in app/Helpers folder (where this plugin doesn't reach)
2018-05-03 21:41:22 +00:00
|
|
|
'LaravelLocalization' => Mcamara\LaravelLocalization\Facades\LaravelLocalization::class,
|
2020-02-13 15:20:40 +00:00
|
|
|
'Agent' => Jenssegers\Agent\Facades\Agent::class,
|
2016-02-29 15:59:36 +00:00
|
|
|
],
|
|
|
|
|
];
|