Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.
This commit is contained in:
Laravel Shift 2021-02-14 18:57:25 +00:00
parent 7a5c230fc2
commit 6dd0eaa33a
2 changed files with 44 additions and 15 deletions

View file

@ -1,20 +1,34 @@
<?php <?php
return [ return [
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Laravel CORS | Cross-Origin Resource Sharing (CORS) Configuration
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| allowedOrigins, allowedHeaders and allowedMethods can be set to array('*') | Here you may configure your settings for cross-origin resource sharing
| to accept any value. | or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
| |
*/ */
'supportsCredentials' => true,
'allowedOrigins' => ['localhost:3000', 'pony.fm', 'stage.pony.fm'], 'paths' => ['api/*'],
'allowedHeaders' => ['*'],
'allowedMethods' => ['*'], 'allowed_methods' => ['*'],
'exposedHeaders' => [],
'maxAge' => 0, 'allowed_origins' => ['*'],
'hosts' => [],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
]; ];

View file

@ -72,4 +72,19 @@ return [
], ],
/*
|--------------------------------------------------------------------------
| Symbolic Links
|--------------------------------------------------------------------------
|
| Here you may configure the symbolic links that will be created when the
| `storage:link` Artisan command is executed. The array keys should be
| the locations of the links and the values should be their targets.
|
*/
'links' => [
public_path('storage') => storage_path('app/public'),
],
]; ];