Apply fixes from StyleCI

This commit is contained in:
Nabeel Shahzad
2018-08-26 16:40:04 +00:00
committed by StyleCI Bot
parent 20f46adbc4
commit 9596d88b48
407 changed files with 4032 additions and 3286 deletions

View File

@@ -8,33 +8,33 @@
*/
return [
'name' => env('APP_NAME', 'phpvms'),
'env' => env('APP_ENV', 'dev'),
'debug' => env('APP_DEBUG', true),
'url' => env('APP_URL', 'http://localhost'),
'name' => env('APP_NAME', 'phpvms'),
'env' => env('APP_ENV', 'dev'),
'debug' => env('APP_DEBUG', true),
'url' => env('APP_URL', 'http://localhost'),
'version' => '7.0.0',
'locale' => env('APP_LOCALE', 'en'),
'locale' => env('APP_LOCALE', 'en'),
'fallback_locale' => 'en',
# Where to redirect after logging in/registration
'login_redirect' => '/dashboard',
// Where to redirect after logging in/registration
'login_redirect' => '/dashboard',
'registration_redirect' => '/profile',
# This sends install and vaCentral specific information to help with
# optimizations and figuring out where slowdowns might be happening
// This sends install and vaCentral specific information to help with
// optimizations and figuring out where slowdowns might be happening
'analytics' => true,
#
# Anything below here won't need changing and could break things
#
//
// Anything below here won't need changing and could break things
//
# DON'T CHANGE THIS OR ELSE YOUR TIMES WILL BE MESSED UP!
// DON'T CHANGE THIS OR ELSE YOUR TIMES WILL BE MESSED UP!
'timezone' => 'UTC',
# Is the default key cipher. Needs to be changed, otherwise phpVMS will think
# that it isn't installed. Doubles as a security feature, so keys are scrambled
'key' => env('APP_KEY', 'base64:zdgcDqu9PM8uGWCtMxd74ZqdGJIrnw812oRMmwDF6KY='),
// Is the default key cipher. Needs to be changed, otherwise phpVMS will think
// that it isn't installed. Doubles as a security feature, so keys are scrambled
'key' => env('APP_KEY', 'base64:zdgcDqu9PM8uGWCtMxd74ZqdGJIrnw812oRMmwDF6KY='),
'cipher' => 'AES-256-CBC',
'providers' => [
@@ -94,53 +94,53 @@ return [
],
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Carbon' => \Carbon\Carbon::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,
'Flash' => Laracasts\Flash\Flash::class,
'Form' => Collective\Html\FormFacade::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Geotools' => Toin0u\Geotools\Facade\Geotools::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Html' => Collective\Html\HtmlFacade::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'NoCaptcha' => Anhskohbo\NoCaptcha\Facades\NoCaptcha::class,
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Carbon' => \Carbon\Carbon::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,
'Flash' => Laracasts\Flash\Flash::class,
'Form' => Collective\Html\FormFacade::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Geotools' => Toin0u\Geotools\Facade\Geotools::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Html' => Collective\Html\HtmlFacade::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'NoCaptcha' => Anhskohbo\NoCaptcha\Facades\NoCaptcha::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,
'Theme' => Igaster\LaravelTheme\Facades\Theme::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Utils' => App\Facades\Utils::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'Version' => PragmaRX\Version\Package\Facade::class,
'View' => Illuminate\Support\Facades\View::class,
'Yaml' => Symfony\Component\Yaml\Yaml::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,
'Theme' => Igaster\LaravelTheme\Facades\Theme::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Utils' => App\Facades\Utils::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'Version' => PragmaRX\Version\Package\Facade::class,
'View' => Illuminate\Support\Facades\View::class,
'Yaml' => Symfony\Component\Yaml\Yaml::class,
# ENUMS
// ENUMS
'ActiveState' => App\Models\Enums\ActiveState::class,
'UserState' => App\Models\Enums\UserState::class,
'UserState' => App\Models\Enums\UserState::class,
'PirepSource' => App\Models\Enums\PirepSource::class,
'PirepState' => App\Models\Enums\PirepState::class,
'PirepState' => App\Models\Enums\PirepState::class,
'PirepStatus' => App\Models\Enums\PirepStatus::class,
],
];

View File

@@ -1,7 +1,6 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults

View File

@@ -1,7 +1,6 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
@@ -31,17 +30,17 @@ return [
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_KEY'),
'secret' => env('PUSHER_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'driver' => 'pusher',
'key' => env('PUSHER_KEY'),
'secret' => env('PUSHER_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
//
],
],
'redis' => [
'driver' => 'redis',
'driver' => 'redis',
'connection' => 'default',
],

View File

@@ -1,65 +1,64 @@
<?php
return [
'default' => env('CACHE_DRIVER', 'array'),
'prefix' => env('CACHE_PREFIX', ''),
'prefix' => env('CACHE_PREFIX', ''),
'keys' => [
'AIRPORT_VACENTRAL_LOOKUP' => [
'key' => 'airports.lookup:',
'key' => 'airports.lookup:',
'time' => 60 * 30,
],
'WEATHER_LOOKUP' => [
'key' => 'airports.weather.', // append icao
'key' => 'airports.weather.', // append icao
'time' => 60 * 60, // Cache for 60 minutes
],
'RANKS_PILOT_LIST' => [
'key' => 'ranks.pilot_list',
'key' => 'ranks.pilot_list',
'time' => 60 * 10,
],
'USER_API_KEY' => [
'key' => 'user.apikey',
'key' => 'user.apikey',
'time' => 60 * 5, // 5 min
],
],
'stores' => [
'apc' => ['driver' => 'apc'],
'array' => ['driver' => 'array'],
'apc' => ['driver' => 'apc'],
'array' => ['driver' => 'array'],
'database' => [
'driver' => 'database',
'table' => 'cache',
'driver' => 'database',
'table' => 'cache',
'connection' => null,
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache'),
'path' => storage_path('framework/cache'),
],
'memcached' => [
'driver' => 'memcached',
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'driver' => 'redis',
'connection' => 'default',
],

View File

@@ -9,10 +9,10 @@
return [
'enabled' => false,
'sitekey' => '',
'secret' => '',
'secret' => '',
# Attributes can be found here:
# https://developers.google.com/recaptcha/docs/display#render_param
// Attributes can be found here:
// https://developers.google.com/recaptcha/docs/display#render_param
'attributes' => [
'data-theme' => 'light',
],

View File

@@ -1,7 +1,6 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Additional Compiled Classes

View File

@@ -4,13 +4,13 @@ return [
'fetch' => PDO::FETCH_ASSOC,
'default' => env('DB_CONNECTION', 'mysql'),
'connections' => [
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', 3306),
'database' => env('DB_DATABASE', ''),
'username' => env('DB_USERNAME', ''),
'password' => env('DB_PASSWORD', ''),
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', 3306),
'database' => env('DB_DATABASE', ''),
'username' => env('DB_USERNAME', ''),
'password' => env('DB_PASSWORD', ''),
//'unix_socket' => env('DB_SOCKET', ''),
'prefix' => env('DB_PREFIX', ''),
'timezone' => '+00:00',
@@ -20,10 +20,10 @@ return [
'engine' => null,
'options' => [
PDO::ATTR_EMULATE_PREPARES => env('DB_EMULATE_PREPARES', false),
#PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
//PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
],
],
'sqlite' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => storage_path('db.sqlite'),
'timezone' => '+00:00',
@@ -35,7 +35,7 @@ return [
'timezone' => '+00:00',
'prefix' => '',
],
'memory' => [
'memory' => [
'driver' => 'sqlite',
'database' => ':memory:',
'timezone' => '+00:00',
@@ -53,5 +53,5 @@ return [
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DATABASE', 1),
],
]
],
];

View File

@@ -5,24 +5,24 @@ return [
// This is the filesystem the uploaded files should go to
'public_files' => 'public',
'cloud' => 's3',
'disks' => [
'cloud' => 's3',
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => public_path('uploads'),
'url' => '/uploads',
'driver' => 'local',
'root' => public_path('uploads'),
'url' => '/uploads',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => 'your-key',
'key' => 'your-key',
'secret' => 'your-secret',
'region' => 'your-region',
'bucket' => 'your-bucket',

View File

@@ -1,7 +1,6 @@
<?php
return array(
return [
/*
|--------------------------------------------------------------------------
| Filename & Format
@@ -11,8 +10,8 @@ return array(
|
*/
'filename' => '_ide_helper',
'format' => 'php',
'filename' => '_ide_helper',
'format' => 'php',
/*
|--------------------------------------------------------------------------
@@ -26,9 +25,9 @@ return array(
'include_helpers' => false,
'helper_files' => array(
'helper_files' => [
base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
),
],
/*
|--------------------------------------------------------------------------
@@ -40,10 +39,9 @@ return array(
|
*/
'model_locations' => array(
'model_locations' => [
//'app/Models',
),
],
/*
|--------------------------------------------------------------------------
@@ -54,13 +52,13 @@ return array(
|
*/
'extra' => array(
'Eloquent' => array('Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'),
'Session' => array('Illuminate\Session\Store'),
),
'extra' => [
'Eloquent' => ['Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'],
'Session' => ['Illuminate\Session\Store'],
],
'magic' => array(
'Log' => array(
'magic' => [
'Log' => [
'debug' => 'Monolog\Logger::addDebug',
'info' => 'Monolog\Logger::addInfo',
'notice' => 'Monolog\Logger::addNotice',
@@ -69,8 +67,8 @@ return array(
'critical' => 'Monolog\Logger::addCritical',
'alert' => 'Monolog\Logger::addAlert',
'emergency' => 'Monolog\Logger::addEmergency',
)
),
],
],
/*
|--------------------------------------------------------------------------
@@ -82,9 +80,9 @@ return array(
|
*/
'interfaces' => array(
'interfaces' => [
),
],
/*
|--------------------------------------------------------------------------
@@ -112,9 +110,9 @@ return array(
| ),
|
*/
'custom_db_types' => array(
'custom_db_types' => [
),
],
/*
|--------------------------------------------------------------------------
@@ -142,4 +140,4 @@ return array(
*/
'model_camel_case_properties' => false,
);
];

View File

@@ -2,9 +2,9 @@
return [
'php' => [
# You can change this to a lower version, the lowest
# can be 7.0. However, there's no guarantee that things
# will work properly. Change at your peril!
'version' => '7.1.3'
]
// You can change this to a lower version, the lowest
// can be 7.0. However, there's no guarantee that things
// will work properly. Change at your peril!
'version' => '7.1.3',
],
];

View File

@@ -5,7 +5,6 @@
* a role & permission management solution for Laravel.
*
* @license MIT
* @package Laratrust
*/
return [
@@ -81,17 +80,17 @@ return [
|
*/
'models' => [
/**
/*
* Role model
*/
'role' => 'App\Models\Role',
/**
/*
* Permission model
*/
'permission' => 'App\Models\Permission',
/**
/*
* Team model
*/
'team' => 'App\Team',
@@ -107,32 +106,32 @@ return [
|
*/
'tables' => [
/**
/*
* Roles table.
*/
'roles' => 'roles',
/**
/*
* Permissions table.
*/
'permissions' => 'permissions',
/**
/*
* Teams table.
*/
'teams' => 'teams',
/**
/*
* Role - User intermediate table.
*/
'role_user' => 'role_user',
/**
/*
* Permission - User intermediate table.
*/
'permission_user' => 'permission_user',
/**
/*
* Permission - Role intermediate table.
*/
'permission_role' => 'permission_role',
@@ -148,22 +147,22 @@ return [
|
*/
'foreign_keys' => [
/**
/*
* User foreign key on Laratrust's role_user and permission_user tables.
*/
'user' => 'user_id',
/**
/*
* Role foreign key on Laratrust's role_user and permission_role tables.
*/
'role' => 'role_id',
/**
/*
* Role foreign key on Laratrust's permission_user and permission_role tables.
*/
'permission' => 'permission_id',
/**
/*
* Role foreign key on Laratrust's role_user and permission_user tables.
*/
'team' => 'team_id',
@@ -179,18 +178,18 @@ return [
|
*/
'middleware' => [
/**
/*
* Define if the laratrust middleware are registered automatically in the service provider
*/
'register' => true,
/**
/*
* Method to be called in the middleware return case.
* Available: abort|redirect
*/
'handling' => 'abort',
/**
/*
* Parameter passed to the middleware_handling method
*/
'params' => '403',

View File

@@ -10,6 +10,6 @@ return [
*/
'route_middleware' => [],
'widget_stub' => 'resources/stubs/widgets/widget.stub',
'widget_plain_stub' => 'resources/stubs/widgets/widget_plain.stub',
'widget_stub' => 'resources/stubs/widgets/widget.stub',
'widget_plain_stub' => 'resources/stubs/widgets/widget_plain.stub',
];

View File

@@ -1,4 +1,5 @@
<?php
return [
/*
|--------------------------------------------------------------------------
@@ -27,14 +28,14 @@ return [
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'driver' => 'stack',
'channels' => [
'daily',
# PHP_SAPI === 'cli' ? 'console' : 'daily',
// PHP_SAPI === 'cli' ? 'console' : 'daily',
],
],
'cron' => [
'driver' => 'stack',
'driver' => 'stack',
'channels' => [
'cron_rotating',
'stdout',
@@ -42,39 +43,39 @@ return [
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'days' => 3,
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'days' => 3,
],
'cron_rotating' => [
'driver' => 'daily',
'path' => storage_path('logs/cron.log'),
'level' => 'debug',
'days' => 3,
'path' => storage_path('logs/cron.log'),
'level' => 'debug',
'days' => 3,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
'level' => 'critical',
'emoji' => ':boom:',
'level' => 'critical',
],
'stdout' => [
'driver' => 'custom',
'via' => \App\Console\Logger::class,
'via' => \App\Console\Logger::class,
],
'syslog' => [
'driver' => 'syslog',
'level' => 'debug',
'level' => 'debug',
],
'errorlog' => [
'driver' => 'errorlog',
'level' => 'debug',
'level' => 'debug',
],
],
];

View File

@@ -1,7 +1,6 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
@@ -56,7 +55,7 @@ return [
*/
'from' => [
'name' => env('MAIL_FROM_NAME', 'phpVMS Admin'),
'name' => env('MAIL_FROM_NAME', 'phpVMS Admin'),
'address' => env('MAIL_FROM_ADDRESS', 'no-reply@phpvms.net'),
],

View File

@@ -4,13 +4,13 @@
*/
return [
/**
/*
* This can really be any METAR service, as long as it returns GeoJSON
*/
'metar_wms' => [
'url' => 'https://ogcie.iblsoft.com/observations?',
'url' => 'https://ogcie.iblsoft.com/observations?',
'params' => [
'layers' => 'metar'
'layers' => 'metar',
],
],
];

View File

@@ -3,9 +3,9 @@
return [
'namespace' => 'Modules',
'stubs' => [
'enabled' => true,
'path' => resource_path().'/stubs/modules',
'files' => [
'enabled' => true,
'path' => resource_path().'/stubs/modules',
'files' => [
'routes' => 'Http/Routes/web.php',
'routes-api' => 'Http/Routes/api.php',
'routes-admin' => 'Http/Routes/admin.php',
@@ -43,9 +43,9 @@ return [
'MODULE_NAMESPACE',
],
],
'gitkeep' => false,
'gitkeep' => false,
],
'paths' => [
'paths' => [
'modules' => base_path('modules'),
'assets' => public_path('modules'),
'migration' => base_path('database/migrations'),
@@ -118,7 +118,7 @@ return [
| Here is the config for setting up caching feature.
|
*/
'cache' => [
'cache' => [
'enabled' => true,
'key' => 'phpvms-modules',
'lifetime' => 60,

View File

@@ -1,7 +1,6 @@
<?php
return [
'AED' => [
'name' => 'UAE Dirham',
'code' => 784,

View File

@@ -10,13 +10,12 @@
*/
return [
/**
/*
* Check for if we're "installed" or not
*/
'installed' => env('PHPVMS_INSTALLED', false),
/**
/*
* The ISO "Currency Code" to use, the list is in config/money.php
*
* Note, do not change this after you've set it, unless you don't
@@ -24,44 +23,44 @@ return [
*/
'currency' => 'USD',
/**
/*
* Point to the class to use to retrieve the METAR string. If this
* goes inactive at some date, it can be replaced
*/
'metar' => App\Services\Metar\AviationWeather::class,
/**
/*
* Your vaCentral API key
*/
'vacentral_api_key' => env('VACENTRAL_API_KEY', ''),
/**
/*
* vaCentral API URL. You likely don't need to change this
*/
'vacentral_api_url' => 'https://api.vacentral.net',
/**
/*
* Misc Settings
*/
'news_feed_url' => 'http://forum.phpvms.net/rss/1-announcements-feed.xml/?',
/**
/*
* URL to the latest version file
*/
'version_file' => 'http://downloads.phpvms.net/VERSION',
/**
/*
* DO NOT CHANGE THESE! It will result in messed up data
* The setting you're looking for is in the admin panel,
* under settings, for the display units
*/
'internal_units' => [
'altitude' => 'feet',
'distance' => 'nmi',
'fuel' => 'lbs',
'mass' => 'lbs',
'velocity' => 'knots',
'volume' => 'gallons',
'altitude' => 'feet',
'distance' => 'nmi',
'fuel' => 'lbs',
'mass' => 'lbs',
'velocity' => 'knots',
'volume' => 'gallons',
],
/*
@@ -70,7 +69,7 @@ return [
* Both parameters are in px.
*/
'avatar' => [
'width' => '200',
'width' => '200',
'height' => '200',
],
];

View File

@@ -1,7 +1,6 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Driver
@@ -35,32 +34,32 @@ return [
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
],
'sqs' => [
'driver' => 'sqs',
'key' => 'your-public-key',
'key' => 'your-public-key',
'secret' => 'your-secret-key',
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
'queue' => 'your-queue-name',
'queue' => 'your-queue-name',
'region' => 'us-east-1',
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'retry_after' => 90,
],
],
@@ -78,7 +77,7 @@ return [
'failed' => [
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
'table' => 'failed_jobs',
],
];

View File

@@ -7,7 +7,6 @@
|
*/
return [
/*
|--------------------------------------------------------------------------
| Repository Pagination Limit Default
@@ -15,7 +14,7 @@ return [
|
*/
'pagination' => [
'limit' => 15
'limit' => 15,
],
/*
@@ -30,11 +29,11 @@ return [
JsonApiSerializer
*/
'fractal' => [
'params' => [
'include' => 'include'
'fractal' => [
'params' => [
'include' => 'include',
],
'serializer' => League\Fractal\Serializer\DataArraySerializer::class
'serializer' => League\Fractal\Serializer\DataArraySerializer::class,
],
/*
@@ -43,7 +42,7 @@ return [
|--------------------------------------------------------------------------
|
*/
'cache' => [
'cache' => [
/*
|--------------------------------------------------------------------------
| Cache Status
@@ -52,7 +51,7 @@ return [
| Enable or disable cache
|
*/
'enabled' => env('CACHE_ENABLED', false),
'enabled' => env('CACHE_ENABLED', false),
/*
|--------------------------------------------------------------------------
@@ -62,7 +61,7 @@ return [
| Time of expiration cache
|
*/
'minutes' => 30,
'minutes' => 30,
/*
|--------------------------------------------------------------------------
@@ -82,7 +81,7 @@ return [
|
|
*/
'clean' => [
'clean' => [
/*
|--------------------------------------------------------------------------
@@ -102,14 +101,14 @@ return [
| delete : Clear Cache on delete Entry in repository
|
*/
'on' => [
'on' => [
'create' => true,
'update' => true,
'delete' => true,
]
],
],
'params' => [
'params' => [
/*
|--------------------------------------------------------------------------
| Skip Cache Params
@@ -119,7 +118,7 @@ return [
| Ex: http://prettus.local/?search=lorem&skipCache=true
|
*/
'skipCache' => 'skipCache'
'skipCache' => 'skipCache',
],
/*
@@ -137,10 +136,10 @@ return [
|
| 'except' =>['find'],
*/
'allowed' => [
'allowed' => [
'only' => null,
'except' => null
]
'except' => null,
],
],
/*
@@ -151,7 +150,7 @@ return [
| Settings of request parameters names that will be used by Criteria
|
*/
'criteria' => [
'criteria' => [
/*
|--------------------------------------------------------------------------
| Accepted Conditions
@@ -169,7 +168,7 @@ return [
*/
'acceptedConditions' => [
'=',
'like'
'like',
],
/*
|--------------------------------------------------------------------------
@@ -203,14 +202,14 @@ return [
| http://prettus.local/?search=lorem&orderBy=id&sortedBy=desc
|
*/
'params' => [
'params' => [
'search' => 'search',
'searchFields' => 'searchFields',
'filter' => 'filter',
'orderBy' => 'orderBy',
'sortedBy' => 'sortedBy',
'with' => 'with'
]
'with' => 'with',
],
],
/*
|--------------------------------------------------------------------------
@@ -218,20 +217,20 @@ return [
|--------------------------------------------------------------------------
|
*/
'generator' => [
'generator' => [
'basePath' => app_path(),
'rootNamespace' => 'App\\',
'paths' => [
'models' => 'Models',
'repositories' => 'Repositories',
'interfaces' => 'Repositories',
'transformers' => 'Transformers',
'presenters' => 'Presenters',
'validators' => 'Validators',
'controllers' => 'Http/Controllers',
'provider' => 'RepositoryServiceProvider',
'criteria' => 'Criteria',
'stubsOverridePath' => app_path()
]
]
'models' => 'Models',
'repositories' => 'Repositories',
'interfaces' => 'Repositories',
'transformers' => 'Transformers',
'presenters' => 'Presenters',
'validators' => 'Validators',
'controllers' => 'Http/Controllers',
'provider' => 'RepositoryServiceProvider',
'criteria' => 'Criteria',
'stubsOverridePath' => app_path(),
],
],
];

View File

@@ -1,7 +1,6 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
@@ -20,7 +19,7 @@ return [
],
'ses' => [
'key' => env('SES_KEY'),
'key' => env('SES_KEY'),
'secret' => env('SES_SECRET'),
'region' => 'us-east-1',
],
@@ -30,8 +29,8 @@ return [
],
'stripe' => [
'model' => App\User::class,
'key' => env('STRIPE_KEY'),
'model' => App\User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
],

View File

@@ -1,7 +1,6 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
@@ -16,18 +15,18 @@ return [
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
'lifetime' => 120,
'driver' => env('SESSION_DRIVER', 'file'),
'lifetime' => 120,
'expire_on_close' => false,
'encrypt' => false,
'files' => storage_path('framework/sessions'),
'connection' => null,
'table' => 'sessions',
'store' => null,
'lottery' => [1, 100],
'cookie' => 'phpvms_session',
'path' => '/',
'domain' => env('SESSION_DOMAIN', null),
'secure' => false,
'http_only' => true,
'encrypt' => false,
'files' => storage_path('framework/sessions'),
'connection' => null,
'table' => 'sessions',
'store' => null,
'lottery' => [1, 100],
'cookie' => 'phpvms_session',
'path' => '/',
'domain' => env('SESSION_DOMAIN', null),
'secure' => false,
'http_only' => true,
];

View File

@@ -1,68 +1,68 @@
<?php
return [
'themes_path' => resource_path('views/layouts'), // eg: base_path('resources/themes')
'asset_not_found' => 'LOG_ERROR',
'default' => 'default',
'cache' => true,
'themes_path' => resource_path('views/layouts'), // eg: base_path('resources/themes')
'asset_not_found' => 'LOG_ERROR',
'default' => 'default',
'cache' => true,
/*
|--------------------------------------------------------------------------
| Define available themes. Format:
|
| 'theme-name' => [
| 'extends' => 'theme-to-extend', // optional
| 'views-path' => 'path-to-views', // defaults to: resources/views/theme-name
| 'asset-path' => 'path-to-assets', // defaults to: public/theme-name
|
| // You can add your own custom keys
| // Use Theme::getSetting('key') & Theme::setSetting('key', 'value') to access them
| 'key' => 'value',
| ],
|
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| Define available themes. Format:
|
| 'theme-name' => [
| 'extends' => 'theme-to-extend', // optional
| 'views-path' => 'path-to-views', // defaults to: resources/views/theme-name
| 'asset-path' => 'path-to-assets', // defaults to: public/theme-name
|
| // You can add your own custom keys
| // Use Theme::getSetting('key') & Theme::setSetting('key', 'value') to access them
| 'key' => 'value',
| ],
|
|--------------------------------------------------------------------------
*/
'themes' => [
'themes' => [
'default' => [
'extends' => 'false'
'default' => [
'extends' => 'false',
],
// Add your themes here. These settings will override theme.json settings defined for each theme
/*
|---------------------------[ Example Structure ]--------------------------
|
| // Full theme Syntax:
|
| 'example1' => [
| 'extends' => null, // doesn't extend any theme
| 'views-path' => example, // = resources/views/example_theme
| 'asset-path' => example, // = public/example_theme
| ],
|
| // Use all Defaults:
|
| 'example2', // Assets =\public\example2, Views =\resources\views\example2
| // Note that if you use all default values, you can omit declaration completely.
| // i.e. defaults will be used when you call Theme::set('undefined-theme')
|
|
| // This theme shares the views with example2 but defines its own assets in \public\example3
|
| 'example3' => [
| 'views-path' => 'example',
| ],
|
| // This theme extends example1 and may override SOME views\assets in its own paths
|
| 'example4' => [
| 'extends' => 'example1',
| ],
|
|--------------------------------------------------------------------------
*/
],
/*
|---------------------------[ Example Structure ]--------------------------
|
| // Full theme Syntax:
|
| 'example1' => [
| 'extends' => null, // doesn't extend any theme
| 'views-path' => example, // = resources/views/example_theme
| 'asset-path' => example, // = public/example_theme
| ],
|
| // Use all Defaults:
|
| 'example2', // Assets =\public\example2, Views =\resources\views\example2
| // Note that if you use all default values, you can omit declaration completely.
| // i.e. defaults will be used when you call Theme::set('undefined-theme')
|
|
| // This theme shares the views with example2 but defines its own assets in \public\example3
|
| 'example3' => [
| 'views-path' => 'example',
| ],
|
| // This theme extends example1 and may override SOME views\assets in its own paths
|
| 'example4' => [
| 'extends' => 'example1',
| ],
|
|--------------------------------------------------------------------------
*/
],
];

View File

@@ -4,12 +4,12 @@
*/
return [
/**
/*
* Your vaCentral API key
*/
'api_key' => env('VACENTRAL_API_KEY', ''),
/**
/*
* vaCentral API URL. You likely don't need to change this
*/
'api_url' => 'https://api.vacentral.net',

View File

@@ -1,7 +1,6 @@
<?php
return [
/*
| View Storage Paths
|