aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorMarvin Borner2018-07-20 16:34:32 +0200
committerMarvin Borner2018-07-20 16:34:32 +0200
commit74cb1477bb921a2378ea22a552b71a48c11e0931 (patch)
tree621ab17315be667c16dad8f3d5f44d67a7a47e8f /config
parent400591b34d4b0a6288834539808a9dede8a60e3a (diff)
Better API (integrated oauth completely)
Diffstat (limited to 'config')
-rw-r--r--config/app.php47
-rw-r--r--config/auth.php9
-rw-r--r--config/broadcasting.php15
-rw-r--r--config/cache.php17
-rw-r--r--config/compile.php35
-rw-r--r--config/database.php40
-rw-r--r--config/filesystems.php22
-rw-r--r--config/hashing.php52
-rw-r--r--config/logging.php81
-rw-r--r--config/mail.php37
-rw-r--r--config/optimus.components.php19
-rw-r--r--config/optimus.heimdal.php31
-rw-r--r--config/queue.php27
-rw-r--r--config/services.php4
-rw-r--r--config/session.php39
-rw-r--r--config/view.php2
16 files changed, 183 insertions, 294 deletions
diff --git a/config/app.php b/config/app.php
index b16e7f7..e454b18 100644
--- a/config/app.php
+++ b/config/app.php
@@ -4,19 +4,6 @@ return [
/*
|--------------------------------------------------------------------------
- | Application Name
- |--------------------------------------------------------------------------
- |
- | This value is the name of your application. This value is used when the
- | framework needs to place the application's name in a notification or
- | any other location as required by the application or its packages.
- |
- */
-
- 'name' => env('APP_NAME', 'Laravel'),
-
- /*
- |--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
@@ -110,6 +97,21 @@ return [
/*
|--------------------------------------------------------------------------
+ | 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"
+ |
+ */
+
+ 'log' => env('APP_LOG', 'single'),
+
+ /*
+ |--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
@@ -136,7 +138,6 @@ return [
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
- Illuminate\Notifications\NotificationServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
@@ -147,18 +148,17 @@ return [
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
- /*
- * Package Service Providers...
- */
+ Laravel\Passport\PassportServiceProvider::class,
+ Optimus\Api\System\TranslationServiceProvider::class,
+ Optimus\Api\System\ViewServiceProvider::class,
+ Optimus\ApiConsumer\Provider\LaravelServiceProvider::class,
+ Optimus\Heimdal\Provider\LaravelServiceProvider::class,
/*
* Application Service Providers...
*/
- App\Providers\AppServiceProvider::class,
- App\Providers\AuthServiceProvider::class,
- // App\Providers\BroadcastServiceProvider::class,
- App\Providers\EventServiceProvider::class,
- App\Providers\RouteServiceProvider::class,
+ Infrastructure\Auth\AuthServiceProvider::class,
+ Infrastructure\Http\RouteServiceProvider::class,
],
@@ -179,8 +179,6 @@ return [
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
- 'Broadcast' => Illuminate\Support\Facades\Broadcast::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,
@@ -194,7 +192,6 @@ return [
'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,
diff --git a/config/auth.php b/config/auth.php
index f8a1194..34d7c33 100644
--- a/config/auth.php
+++ b/config/auth.php
@@ -14,7 +14,7 @@ return [
*/
'defaults' => [
- 'guard' => 'web',
+ 'guard' => 'api',
'passwords' => 'users',
],
@@ -67,7 +67,7 @@ return [
'providers' => [
'users' => [
'driver' => 'eloquent',
- 'model' => App\User::class,
+ 'model' => Api\Users\Models\User::class,
],
// 'users' => [
@@ -81,6 +81,10 @@ return [
| Resetting Passwords
|--------------------------------------------------------------------------
|
+ | Here you may set the options for resetting passwords including the view
+ | that is your password reset e-mail. You may also set the name of the
+ | table that maintains all of the reset tokens for your application.
+ |
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
@@ -94,6 +98,7 @@ return [
'passwords' => [
'users' => [
'provider' => 'users',
+ 'email' => 'auth.emails.password',
'table' => 'password_resets',
'expire' => 60,
],
diff --git a/config/broadcasting.php b/config/broadcasting.php
index 3ca45ea..abaaac3 100644
--- a/config/broadcasting.php
+++ b/config/broadcasting.php
@@ -11,11 +11,9 @@ return [
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
- | Supported: "pusher", "redis", "log", "null"
- |
*/
- 'default' => env('BROADCAST_DRIVER', 'null'),
+ 'default' => env('BROADCAST_DRIVER', 'pusher'),
/*
|--------------------------------------------------------------------------
@@ -32,12 +30,11 @@ return [
'pusher' => [
'driver' => 'pusher',
- 'key' => env('PUSHER_APP_KEY'),
- 'secret' => env('PUSHER_APP_SECRET'),
+ 'key' => env('PUSHER_KEY'),
+ 'secret' => env('PUSHER_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
- 'cluster' => env('PUSHER_APP_CLUSTER'),
- 'encrypted' => true,
+ //
],
],
@@ -50,10 +47,6 @@ return [
'driver' => 'log',
],
- 'null' => [
- 'driver' => 'null',
- ],
-
],
];
diff --git a/config/cache.php b/config/cache.php
index fa12e5e..3ffa840 100644
--- a/config/cache.php
+++ b/config/cache.php
@@ -11,8 +11,6 @@ return [
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
- | Supported: "apc", "array", "database", "file", "memcached", "redis"
- |
*/
'default' => env('CACHE_DRIVER', 'file'),
@@ -46,19 +44,11 @@ return [
'file' => [
'driver' => 'file',
- 'path' => storage_path('framework/cache/data'),
+ 'path' => storage_path('framework/cache'),
],
'memcached' => [
'driver' => 'memcached',
- 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
- 'sasl' => [
- env('MEMCACHED_USERNAME'),
- env('MEMCACHED_PASSWORD'),
- ],
- 'options' => [
- // Memcached::OPT_CONNECT_TIMEOUT => 2000,
- ],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
@@ -86,9 +76,6 @@ return [
|
*/
- 'prefix' => env(
- 'CACHE_PREFIX',
- str_slug(env('APP_NAME', 'laravel'), '_').'_cache'
- ),
+ 'prefix' => 'laravel',
];
diff --git a/config/compile.php b/config/compile.php
new file mode 100644
index 0000000..04807ea
--- /dev/null
+++ b/config/compile.php
@@ -0,0 +1,35 @@
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Additional Compiled Classes
+ |--------------------------------------------------------------------------
+ |
+ | Here you may specify additional classes to include in the compiled file
+ | generated by the `artisan optimize` command. These should be classes
+ | that are included on basically every request into the application.
+ |
+ */
+
+ 'files' => [
+ //
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Compiled File Providers
+ |--------------------------------------------------------------------------
+ |
+ | Here you may list service providers which define a "compiles" function
+ | that returns additional files that should be compiled, providing an
+ | easy way to get common files from any packages you are utilizing.
+ |
+ */
+
+ 'providers' => [
+ //
+ ],
+
+];
diff --git a/config/database.php b/config/database.php
index cab5d06..8451a62 100644
--- a/config/database.php
+++ b/config/database.php
@@ -4,6 +4,19 @@ return [
/*
|--------------------------------------------------------------------------
+ | PDO Fetch Style
+ |--------------------------------------------------------------------------
+ |
+ | By default, database results will be returned as instances of the PHP
+ | stdClass object; however, you may desire to retrieve records in an
+ | array format for simplicity. Here you can tweak the fetch style.
+ |
+ */
+
+ 'fetch' => PDO::FETCH_CLASS,
+
+ /*
+ |--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
@@ -41,22 +54,21 @@ return [
'mysql' => [
'driver' => 'mysql',
- 'host' => env('DB_HOST', '127.0.0.1'),
+ 'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
- 'unix_socket' => env('DB_SOCKET', ''),
- 'charset' => 'utf8mb4',
- 'collation' => 'utf8mb4_unicode_ci',
+ 'charset' => 'utf8',
+ 'collation' => 'utf8_unicode_ci',
'prefix' => '',
- 'strict' => true,
+ 'strict' => false,
'engine' => null,
],
'pgsql' => [
'driver' => 'pgsql',
- 'host' => env('DB_HOST', '127.0.0.1'),
+ 'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
@@ -64,18 +76,6 @@ return [
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
- 'sslmode' => 'prefer',
- ],
-
- 'sqlsrv' => [
- 'driver' => 'sqlsrv',
- 'host' => env('DB_HOST', 'localhost'),
- 'port' => env('DB_PORT', '1433'),
- 'database' => env('DB_DATABASE', 'forge'),
- 'username' => env('DB_USERNAME', 'forge'),
- 'password' => env('DB_PASSWORD', ''),
- 'charset' => 'utf8',
- 'prefix' => '',
],
],
@@ -106,10 +106,10 @@ return [
'redis' => [
- 'client' => 'predis',
+ 'cluster' => false,
'default' => [
- 'host' => env('REDIS_HOST', '127.0.0.1'),
+ 'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
diff --git a/config/filesystems.php b/config/filesystems.php
index 77fa5de..75b5002 100644
--- a/config/filesystems.php
+++ b/config/filesystems.php
@@ -8,12 +8,14 @@ return [
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
- | by the framework. The "local" disk, as well as a variety of cloud
- | based disks are available to your application. Just store away!
+ | by the framework. A "local" driver, as well as a variety of cloud
+ | based drivers are available for your choosing. Just store away!
+ |
+ | Supported: "local", "ftp", "s3", "rackspace"
|
*/
- 'default' => env('FILESYSTEM_DRIVER', 'local'),
+ 'default' => 'local',
/*
|--------------------------------------------------------------------------
@@ -26,7 +28,7 @@ return [
|
*/
- 'cloud' => env('FILESYSTEM_CLOUD', 's3'),
+ 'cloud' => 's3',
/*
|--------------------------------------------------------------------------
@@ -37,8 +39,6 @@ return [
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
- | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace"
- |
*/
'disks' => [
@@ -51,17 +51,15 @@ return [
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
- 'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
- 'key' => env('AWS_ACCESS_KEY_ID'),
- 'secret' => env('AWS_SECRET_ACCESS_KEY'),
- 'region' => env('AWS_DEFAULT_REGION'),
- 'bucket' => env('AWS_BUCKET'),
- 'url' => env('AWS_URL'),
+ 'key' => 'your-key',
+ 'secret' => 'your-secret',
+ 'region' => 'your-region',
+ 'bucket' => 'your-bucket',
],
],
diff --git a/config/hashing.php b/config/hashing.php
deleted file mode 100644
index d3c8e2f..0000000
--- a/config/hashing.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-return [
-
- /*
- |--------------------------------------------------------------------------
- | Default Hash Driver
- |--------------------------------------------------------------------------
- |
- | This option controls the default hash driver that will be used to hash
- | passwords for your application. By default, the bcrypt algorithm is
- | used; however, you remain free to modify this option if you wish.
- |
- | Supported: "bcrypt", "argon"
- |
- */
-
- 'driver' => 'bcrypt',
-
- /*
- |--------------------------------------------------------------------------
- | Bcrypt Options
- |--------------------------------------------------------------------------
- |
- | Here you may specify the configuration options that should be used when
- | passwords are hashed using the Bcrypt algorithm. This will allow you
- | to control the amount of time it takes to hash the given password.
- |
- */
-
- 'bcrypt' => [
- 'rounds' => env('BCRYPT_ROUNDS', 10),
- ],
-
- /*
- |--------------------------------------------------------------------------
- | Argon Options
- |--------------------------------------------------------------------------
- |
- | Here you may specify the configuration options that should be used when
- | passwords are hashed using the Argon algorithm. These will allow you
- | to control the amount of time it takes to hash the given password.
- |
- */
-
- 'argon' => [
- 'memory' => 1024,
- 'threads' => 2,
- 'time' => 2,
- ],
-
-];
diff --git a/config/logging.php b/config/logging.php
deleted file mode 100644
index 400bc7f..0000000
--- a/config/logging.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-use Monolog\Handler\StreamHandler;
-
-return [
-
- /*
- |--------------------------------------------------------------------------
- | Default Log Channel
- |--------------------------------------------------------------------------
- |
- | This option defines the default log channel that gets used when writing
- | messages to the logs. The name specified in this option should match
- | one of the channels defined in the "channels" configuration array.
- |
- */
-
- 'default' => env('LOG_CHANNEL', 'stack'),
-
- /*
- |--------------------------------------------------------------------------
- | Log Channels
- |--------------------------------------------------------------------------
- |
- | Here you may configure the log channels 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 Drivers: "single", "daily", "slack", "syslog",
- | "errorlog", "monolog",
- | "custom", "stack"
- |
- */
-
- 'channels' => [
- 'stack' => [
- 'driver' => 'stack',
- 'channels' => ['single'],
- ],
-
- 'single' => [
- 'driver' => 'single',
- 'path' => storage_path('logs/laravel.log'),
- 'level' => 'debug',
- ],
-
- 'daily' => [
- 'driver' => 'daily',
- 'path' => storage_path('logs/laravel.log'),
- 'level' => 'debug',
- 'days' => 7,
- ],
-
- 'slack' => [
- 'driver' => 'slack',
- 'url' => env('LOG_SLACK_WEBHOOK_URL'),
- 'username' => 'Laravel Log',
- 'emoji' => ':boom:',
- 'level' => 'critical',
- ],
-
- 'stderr' => [
- 'driver' => 'monolog',
- 'handler' => StreamHandler::class,
- 'with' => [
- 'stream' => 'php://stderr',
- ],
- ],
-
- 'syslog' => [
- 'driver' => 'syslog',
- 'level' => 'debug',
- ],
-
- 'errorlog' => [
- 'driver' => 'errorlog',
- 'level' => 'debug',
- ],
- ],
-
-];
diff --git a/config/mail.php b/config/mail.php
index bb92224..a076588 100644
--- a/config/mail.php
+++ b/config/mail.php
@@ -11,8 +11,8 @@ return [
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
- | Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses",
- | "sparkpost", "log", "array"
+ | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill",
+ | "ses", "sparkpost", "log"
|
*/
@@ -55,10 +55,7 @@ return [
|
*/
- 'from' => [
- 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
- 'name' => env('MAIL_FROM_NAME', 'Example'),
- ],
+ 'from' => ['address' => null, 'name' => null],
/*
|--------------------------------------------------------------------------
@@ -86,38 +83,30 @@ return [
'username' => env('MAIL_USERNAME'),
- 'password' => env('MAIL_PASSWORD'),
-
/*
|--------------------------------------------------------------------------
- | Sendmail System Path
+ | SMTP Server Password
|--------------------------------------------------------------------------
|
- | When using the "sendmail" driver to send e-mails, we will need to know
- | the path to where Sendmail lives on this server. A default path has
- | been provided here, which will work well on most of your systems.
+ | Here you may set the password required by your SMTP server to send out
+ | messages from your application. This will be given to the server on
+ | connection so that the application will be able to send messages.
|
*/
- 'sendmail' => '/usr/sbin/sendmail -bs',
+ 'password' => env('MAIL_PASSWORD'),
/*
|--------------------------------------------------------------------------
- | Markdown Mail Settings
+ | Sendmail System Path
|--------------------------------------------------------------------------
|
- | If you are using Markdown based email rendering, you may configure your
- | theme and component paths here, allowing you to customize the design
- | of the emails. Or, you may simply stick with the Laravel defaults!
+ | When using the "sendmail" driver to send e-mails, we will need to know
+ | the path to where Sendmail lives on this server. A default path has
+ | been provided here, which will work well on most of your systems.
|
*/
- 'markdown' => [
- 'theme' => 'default',
-
- 'paths' => [
- resource_path('views/vendor/mail'),
- ],
- ],
+ 'sendmail' => '/usr/sbin/sendmail -bs',
];
diff --git a/config/optimus.components.php b/config/optimus.components.php
new file mode 100644
index 0000000..33a4170
--- /dev/null
+++ b/config/optimus.components.php
@@ -0,0 +1,19 @@
+<?php
+
+return [
+ 'namespaces' => [
+ 'Api' => base_path() . DIRECTORY_SEPARATOR . 'api',
+ 'Infrastructure' => base_path() . DIRECTORY_SEPARATOR . 'infrastructure'
+ ],
+
+
+ 'protection_middleware' => [
+ 'auth:api'
+ ],
+
+ 'resource_namespace' => 'resources',
+
+ 'language_folder_name' => 'lang',
+
+ 'view_folder_name' => 'views'
+];
diff --git a/config/optimus.heimdal.php b/config/optimus.heimdal.php
new file mode 100644
index 0000000..504dad3
--- /dev/null
+++ b/config/optimus.heimdal.php
@@ -0,0 +1,31 @@
+<?php
+
+use Symfony\Component\HttpKernel\Exception as SymfonyException;
+use Optimus\Heimdal\Formatters;
+
+return [
+ 'add_cors_headers' => false,
+
+ // Has to be in prioritized order, e.g. highest priority first.
+ 'formatters' => [
+ SymfonyException\UnprocessableEntityHttpException::class => Formatters\UnprocessableEntityHttpExceptionFormatter::class,
+ SymfonyException\HttpException::class => Formatters\HttpExceptionFormatter::class,
+ Exception::class => Formatters\ExceptionFormatter::class,
+ ],
+
+ 'response_factory' => \Optimus\Heimdal\ResponseFactory::class,
+
+ 'reporters' => [
+ /*'sentry' => [
+ 'class' => \Optimus\Heimdal\Reporters\SentryReporter::class,
+ 'config' => [
+ 'dsn' => '',
+ // For extra options see https://docs.sentry.io/clients/php/config/
+ // php version and environment are automatically added.
+ 'sentry_options' => []
+ ]
+ ]*/
+ ],
+
+ 'server_error_production' => 'An error occurred.'
+];
diff --git a/config/queue.php b/config/queue.php
index 391304f..d0f732a 100644
--- a/config/queue.php
+++ b/config/queue.php
@@ -4,12 +4,14 @@ return [
/*
|--------------------------------------------------------------------------
- | Default Queue Connection Name
+ | Default Queue Driver
|--------------------------------------------------------------------------
|
- | Laravel's queue API supports an assortment of back-ends via a single
+ | The Laravel queue API supports a variety of back-ends via an unified
| API, giving you convenient access to each back-end using the same
- | syntax for every one. Here you may define a default connection.
+ | syntax for each one. Here you may set the default queue driver.
+ |
+ | Supported: "null", "sync", "database", "beanstalkd", "sqs", "redis"
|
*/
@@ -24,8 +26,6 @@ return [
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
- | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
- |
*/
'connections' => [
@@ -38,31 +38,30 @@ return [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
- 'retry_after' => 90,
+ 'expire' => 60,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
- 'retry_after' => 90,
+ 'ttr' => 60,
],
'sqs' => [
'driver' => 'sqs',
- 'key' => env('SQS_KEY', 'your-public-key'),
- 'secret' => env('SQS_SECRET', 'your-secret-key'),
- 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
- 'queue' => env('SQS_QUEUE', 'your-queue-name'),
- 'region' => env('SQS_REGION', 'us-east-1'),
+ 'key' => 'your-public-key',
+ 'secret' => 'your-secret-key',
+ 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
+ 'queue' => 'your-queue-name',
+ 'region' => 'us-east-1',
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
- 'retry_after' => 90,
- 'block_for' => null,
+ 'expire' => 60,
],
],
diff --git a/config/services.php b/config/services.php
index aa1f7f8..287b118 100644
--- a/config/services.php
+++ b/config/services.php
@@ -8,7 +8,7 @@ return [
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
- | as Stripe, Mailgun, SparkPost and others. This file provides a sane
+ | as Stripe, Mailgun, Mandrill, and others. This file provides a sane
| default location for this type of information, allowing packages
| to have a conventional place to find your various credentials.
|
@@ -22,7 +22,7 @@ return [
'ses' => [
'key' => env('SES_KEY'),
'secret' => env('SES_SECRET'),
- 'region' => env('SES_REGION', 'us-east-1'),
+ 'region' => 'us-east-1',
],
'sparkpost' => [
diff --git a/config/session.php b/config/session.php
index 736fb3c..b501055 100644
--- a/config/session.php
+++ b/config/session.php
@@ -29,7 +29,7 @@ return [
|
*/
- 'lifetime' => env('SESSION_LIFETIME', 120),
+ 'lifetime' => 120,
'expire_on_close' => false,
@@ -87,19 +87,6 @@ return [
/*
|--------------------------------------------------------------------------
- | Session Cache Store
- |--------------------------------------------------------------------------
- |
- | When using the "apc" or "memcached" session drivers, you may specify a
- | cache store that should be used for these sessions. This value must
- | correspond with one of the application's configured cache stores.
- |
- */
-
- 'store' => null,
-
- /*
- |--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
@@ -122,10 +109,7 @@ return [
|
*/
- 'cookie' => env(
- 'SESSION_COOKIE',
- str_slug(env('APP_NAME', 'laravel'), '_').'_session'
- ),
+ 'cookie' => 'laravel_session',
/*
|--------------------------------------------------------------------------
@@ -151,7 +135,7 @@ return [
|
*/
- 'domain' => env('SESSION_DOMAIN', null),
+ 'domain' => null,
/*
|--------------------------------------------------------------------------
@@ -164,7 +148,7 @@ return [
|
*/
- 'secure' => env('SESSION_SECURE_COOKIE', false),
+ 'secure' => false,
/*
|--------------------------------------------------------------------------
@@ -179,19 +163,4 @@ return [
'http_only' => true,
- /*
- |--------------------------------------------------------------------------
- | Same-Site Cookies
- |--------------------------------------------------------------------------
- |
- | This option determines how your cookies behave when cross-site requests
- | take place, and can be used to mitigate CSRF attacks. By default, we
- | do not enable this as other CSRF protection services are in place.
- |
- | Supported: "lax", "strict"
- |
- */
-
- 'same_site' => null,
-
];
diff --git a/config/view.php b/config/view.php
index 2acfd9c..e193ab6 100644
--- a/config/view.php
+++ b/config/view.php
@@ -14,7 +14,7 @@ return [
*/
'paths' => [
- resource_path('views'),
+ realpath(base_path('resources/views')),
],
/*