From 56a7dd1d005809f16b2073c048ac4e8b367479e7 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Tue, 31 May 2016 00:36:35 +0200 Subject: [PATCH] Clean up configuration files and add .env.example --- .env.example | 8 +++++++ config/app.php | 52 --------------------------------------------- config/database.php | 2 +- 3 files changed, 9 insertions(+), 53 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..f7d30c1 --- /dev/null +++ b/.env.example @@ -0,0 +1,8 @@ +APP_DEBUG=true +APP_URL=http://pastethingy.app + +DB_HOST=127.0.0.1 +DB_PORT=5432 +DB_DATABASE=pastethingy +DB_USERNAME=homestead +DB_PASSWORD=secret diff --git a/config/app.php b/config/app.php index 8fd74d1..2df0c12 100644 --- a/config/app.php +++ b/config/app.php @@ -2,19 +2,6 @@ return [ - /* - |-------------------------------------------------------------------------- - | 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. - | - */ - - 'env' => env('APP_ENV', 'development'), - /* |-------------------------------------------------------------------------- | Application Debug Mode @@ -67,34 +54,6 @@ return [ 'locale' => 'en', - /* - |-------------------------------------------------------------------------- - | 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. - | - */ - - 'fallback_locale' => 'en', - - /* - |-------------------------------------------------------------------------- - | 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! - | - */ - - 'key' => env('APP_KEY'), - - 'cipher' => 'AES-256-CBC', - /* |-------------------------------------------------------------------------- | Logging Configuration @@ -132,17 +91,12 @@ return [ Illuminate\Database\DatabaseServiceProvider::class, Illuminate\Filesystem\FilesystemServiceProvider::class, Illuminate\Foundation\Providers\FoundationServiceProvider::class, - Illuminate\Pipeline\PipelineServiceProvider::class, - Illuminate\Queue\QueueServiceProvider::class, - Illuminate\Translation\TranslationServiceProvider::class, - Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, /* * Application Service Providers... */ App\Providers\AppServiceProvider::class, - App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, ], @@ -163,16 +117,10 @@ return [ 'App' => Illuminate\Support\Facades\App::class, 'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Blade' => Illuminate\Support\Facades\Blade::class, - 'Cache' => Illuminate\Support\Facades\Cache::class, 'Config' => Illuminate\Support\Facades\Config::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, - 'Lang' => Illuminate\Support\Facades\Lang::class, - 'Log' => Illuminate\Support\Facades\Log::class, - 'Queue' => Illuminate\Support\Facades\Queue::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class, 'Request' => Illuminate\Support\Facades\Request::class, 'Response' => Illuminate\Support\Facades\Response::class, diff --git a/config/database.php b/config/database.php index 7b1f511..e70aa82 100644 --- a/config/database.php +++ b/config/database.php @@ -26,7 +26,7 @@ return [ | */ - 'default' => env('DB_CONNECTION', 'postgres'), + 'default' => 'postgres', /* |--------------------------------------------------------------------------