Skip to content

Instantly share code, notes, and snippets.

@aik099
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aik099/bfd82feb6c1680277500 to your computer and use it in GitHub Desktop.
Save aik099/bfd82feb6c1680277500 to your computer and use it in GitHub Desktop.
Comparing Laravel 4.2 and 4.3 config/app.php
Array
(
[Illuminate\Foundation\Application] => app
[Illuminate\Console\Application] => artisan
[Illuminate\Auth\AuthManager] => auth
[Illuminate\Auth\Reminders\ReminderRepositoryInterface] => auth.reminder.repository
[Illuminate\View\Compilers\BladeCompiler] => blade.compiler
[Illuminate\Cache\CacheManager] => cache
[Illuminate\Cache\Repository] => cache.store
[Illuminate\Config\Repository] => config
[Illuminate\Cookie\CookieJar] => cookie
[Illuminate\Encryption\Encrypter] => encrypter
[Illuminate\Database\DatabaseManager] => db
[Illuminate\Events\Dispatcher] => events
[Illuminate\Filesystem\Filesystem] => files
[Illuminate\Html\FormBuilder] => form
[Illuminate\Hashing\HasherInterface] => hash
[Illuminate\Html\HtmlBuilder] => html
[Illuminate\Translation\Translator] => translator
[Illuminate\Log\Writer] => log
[Illuminate\Mail\Mailer] => mailer
[Illuminate\Pagination\Factory] => paginator
[Illuminate\Auth\Reminders\PasswordBroker] => auth.reminder
[Illuminate\Queue\QueueManager] => queue
[Illuminate\Routing\Redirector] => redirect
[Illuminate\Redis\Database] => redis
[Illuminate\Http\Request] => request
[Illuminate\Routing\Router] => router
[Illuminate\Session\SessionManager] => session
[Illuminate\Session\Store] => session.store
[Illuminate\Remote\RemoteManager] => remote
[Illuminate\Routing\UrlGenerator] => url
[Illuminate\Validation\Factory] => validator
[Illuminate\View\Factory] => view
)
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'debug' => true,
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'url' => 'http://localhost',
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'timezone' => 'Europe/Riga',
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'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' => 'YourSecretKey!!!',
'cipher' => MCRYPT_RIJNDAEL_128,
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
'Illuminate\Cache\CacheServiceProvider',
'Illuminate\Session\CommandsServiceProvider',
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
'Illuminate\Routing\ControllerServiceProvider',
'Illuminate\Cookie\CookieServiceProvider',
'Illuminate\Database\DatabaseServiceProvider',
'Illuminate\Encryption\EncryptionServiceProvider',
'Illuminate\Filesystem\FilesystemServiceProvider',
'Illuminate\Hashing\HashServiceProvider',
'Illuminate\Html\HtmlServiceProvider',
'Illuminate\Log\LogServiceProvider',
'Illuminate\Mail\MailServiceProvider',
'Illuminate\Database\MigrationServiceProvider',
'Illuminate\Pagination\PaginationServiceProvider',
'Illuminate\Queue\QueueServiceProvider',
'Illuminate\Redis\RedisServiceProvider',
'Illuminate\Remote\RemoteServiceProvider',
'Illuminate\Auth\Reminders\ReminderServiceProvider',
'Illuminate\Database\SeedServiceProvider',
'Illuminate\Session\SessionServiceProvider',
'Illuminate\Translation\TranslationServiceProvider',
'Illuminate\Validation\ValidationServiceProvider',
'Illuminate\View\ViewServiceProvider',
'Illuminate\Workbench\WorkbenchServiceProvider',
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
'TwigBridge\ServiceProvider',
),
/*
|--------------------------------------------------------------------------
| Service Provider Manifest
|--------------------------------------------------------------------------
|
| The service provider manifest is used by Laravel to lazy load service
| providers which are not needed for each request, as well to keep a
| list of all of the services. Here, you may set its storage spot.
|
*/
'manifest' => storage_path().'/meta',
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
'Auth' => 'Illuminate\Support\Facades\Auth',
'Blade' => 'Illuminate\Support\Facades\Blade',
'Cache' => 'Illuminate\Support\Facades\Cache',
'ClassLoader' => 'Illuminate\Support\ClassLoader',
'Config' => 'Illuminate\Support\Facades\Config',
'Controller' => 'Illuminate\Routing\Controller',
'Cookie' => 'Illuminate\Support\Facades\Cookie',
'Crypt' => 'Illuminate\Support\Facades\Crypt',
'DB' => 'Illuminate\Support\Facades\DB',
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
'Event' => 'Illuminate\Support\Facades\Event',
'File' => 'Illuminate\Support\Facades\File',
'Form' => 'Illuminate\Support\Facades\Form',
'Hash' => 'Illuminate\Support\Facades\Hash',
'HTML' => 'Illuminate\Support\Facades\HTML',
'Input' => 'Illuminate\Support\Facades\Input',
'Lang' => 'Illuminate\Support\Facades\Lang',
'Log' => 'Illuminate\Support\Facades\Log',
'Mail' => 'Illuminate\Support\Facades\Mail',
'Paginator' => 'Illuminate\Support\Facades\Paginator',
'Password' => 'Illuminate\Support\Facades\Password',
'Queue' => 'Illuminate\Support\Facades\Queue',
'Redirect' => 'Illuminate\Support\Facades\Redirect',
'Redis' => 'Illuminate\Support\Facades\Redis',
'Request' => 'Illuminate\Support\Facades\Request',
'Response' => 'Illuminate\Support\Facades\Response',
'Route' => 'Illuminate\Support\Facades\Route',
'Schema' => 'Illuminate\Support\Facades\Schema',
'Seeder' => 'Illuminate\Database\Seeder',
'Session' => 'Illuminate\Support\Facades\Session',
'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait',
'SSH' => 'Illuminate\Support\Facades\SSH',
'Str' => 'Illuminate\Support\Str',
'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
'View' => 'Illuminate\Support\Facades\View',
'Twig' => 'TwigBridge\Facade\Twig',
),
);
Array
(
[Illuminate\Foundation\Application] => app
[Illuminate\Contracts\Container\Container] => app
[Illuminate\Contracts\Foundation\Application] => app
[Illuminate\Console\Application] => artisan
[Illuminate\Auth\AuthManager] => auth
[Illuminate\Auth\Guard] => auth.driver
[Illuminate\Contracts\Auth\Authenticator] => auth.driver
[Illuminate\Auth\Reminders\ReminderRepositoryInterface] => auth.reminder.repository
[Illuminate\View\Compilers\BladeCompiler] => blade.compiler
[Illuminate\Cache\CacheManager] => cache
[Illuminate\Contracts\Cache\Factory] => cache
[Illuminate\Cache\Repository] => cache.store
[Illuminate\Contracts\Cache\Repository] => cache.store
[Illuminate\Config\Repository] => config
[Illuminate\Contracts\Config\Repository] => config
[Illuminate\Cookie\CookieJar] => cookie
[Illuminate\Contracts\Cookie\Factory] => cookie
[Illuminate\Contracts\Cookie\QueueingFactory] => cookie
[Illuminate\Contracts\Exception\Handler] => exception
[Illuminate\Encryption\Encrypter] => encrypter
[Illuminate\Contracts\Encryption\Encrypter] => encrypter
[Illuminate\Database\DatabaseManager] => db
[Illuminate\Events\Dispatcher] => events
[Illuminate\Contracts\Events\Dispatcher] => events
[Illuminate\Filesystem\Filesystem] => files
[Illuminate\Contracts\Filesystem\Factory] => filesystem
[Illuminate\Contracts\Filesystem\Filesystem] => filesystem.disk
[Illuminate\Contracts\Filesystem\Cloud] => filesystem.cloud
[Illuminate\Contracts\Hashing\Hasher] => hash
[Illuminate\Translation\Translator] => translator
[Symfony\Component\Translation\TranslatorInterface] => translator
[Illuminate\Log\Writer] => log
[Illuminate\Contracts\Logging\Log] => log
[Illuminate\Mail\Mailer] => mailer
[Illuminate\Contracts\Mail\Mailer] => mailer
[Illuminate\Contracts\Mail\MailQueue] => mailer
[Illuminate\Pagination\Factory] => paginator
[Illuminate\Auth\Reminders\PasswordBroker] => auth.reminder
[Illuminate\Contracts\Auth\PasswordBroker] => auth.reminder
[Illuminate\Queue\QueueManager] => queue
[Illuminate\Contracts\Queue\Factory] => queue
[Illuminate\Contracts\Queue\Queue] => queue.connection
[Illuminate\Routing\Redirector] => redirect
[Illuminate\Redis\Database] => redis
[Illuminate\Contracts\Redis\Database] => redis
[Illuminate\Http\Request] => request
[Illuminate\Routing\Router] => router
[Illuminate\Contracts\Routing\Registrar] => router
[Illuminate\Session\SessionManager] => session
[Illuminate\Session\Store] => session.store
[Symfony\Component\HttpFoundation\Session\SessionInterface] => session.store
[Illuminate\Routing\UrlGenerator] => url
[Illuminate\Contracts\Routing\UrlGenerator] => url
[Illuminate\Validation\Factory] => validator
[Illuminate\Contracts\Validation\Factory] => validator
[Illuminate\View\Factory] => view
[Illuminate\Contracts\View\Factory] => view
)
<?php
return [
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'debug' => false,
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'url' => 'http://localhost',
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'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' => 'ImIf8F8WsiRntFQhKA3rqTPLL9FZWdpY',
'cipher' => MCRYPT_RIJNDAEL_128,
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'providers' => [
/*
* Application Service Providers...
*/
'App\Providers\AppServiceProvider',
'App\Providers\ArtisanServiceProvider',
'App\Providers\ErrorServiceProvider',
'App\Providers\FilterServiceProvider',
'App\Providers\LogServiceProvider',
'App\Providers\RouteServiceProvider',
/*
* Laravel Framework Service Providers...
*/
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
'Illuminate\Cache\CacheServiceProvider',
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
'Illuminate\Cookie\CookieServiceProvider',
'Illuminate\Database\DatabaseServiceProvider',
'Illuminate\Encryption\EncryptionServiceProvider',
'Illuminate\Filesystem\FilesystemServiceProvider',
'Illuminate\Foundation\Providers\FoundationServiceProvider',
'Illuminate\Hashing\HashServiceProvider',
'Illuminate\Html\HtmlServiceProvider',
'Illuminate\Log\LogServiceProvider',
'Illuminate\Mail\MailServiceProvider',
'Illuminate\Pagination\PaginationServiceProvider',
'Illuminate\Queue\QueueServiceProvider',
'Illuminate\Redis\RedisServiceProvider',
'Illuminate\Auth\Reminders\ReminderServiceProvider',
'Illuminate\Session\SessionServiceProvider',
'Illuminate\Translation\TranslationServiceProvider',
'Illuminate\Validation\ValidationServiceProvider',
'Illuminate\View\ViewServiceProvider',
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
//'Barryvdh\Debugbar\ServiceProvider',
'TwigBridge\ServiceProvider',
//'Terbium\DbConfig\DbConfigServiceProvider',
],
/*
|--------------------------------------------------------------------------
| Service Provider Manifest
|--------------------------------------------------------------------------
|
| The service provider manifest is used by Laravel to lazy load service
| providers which are not needed for each request, as well to keep a
| list of all of the services. Here, you may set its storage spot.
|
*/
'manifest' => storage_path().'/meta',
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'aliases' => [
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
'Auth' => 'Illuminate\Support\Facades\Auth',
'Blade' => 'Illuminate\Support\Facades\Blade',
'Cache' => 'Illuminate\Support\Facades\Cache',
'Config' => 'Illuminate\Support\Facades\Config',
'Cookie' => 'Illuminate\Support\Facades\Cookie',
'Crypt' => 'Illuminate\Support\Facades\Crypt',
'DB' => 'Illuminate\Support\Facades\DB',
'Event' => 'Illuminate\Support\Facades\Event',
'File' => 'Illuminate\Support\Facades\File',
'Form' => 'Illuminate\Html\FormFacade',
'Hash' => 'Illuminate\Support\Facades\Hash',
'HTML' => 'Illuminate\Html\HtmlFacade',
'Input' => 'Illuminate\Support\Facades\Input',
'Lang' => 'Illuminate\Support\Facades\Lang',
'Log' => 'Illuminate\Support\Facades\Log',
'Mail' => 'Illuminate\Support\Facades\Mail',
'Paginator' => 'Illuminate\Support\Facades\Paginator',
'Password' => 'Illuminate\Support\Facades\Password',
'Queue' => 'Illuminate\Support\Facades\Queue',
'Redirect' => 'Illuminate\Support\Facades\Redirect',
'Redis' => 'Illuminate\Support\Facades\Redis',
'Request' => 'Illuminate\Support\Facades\Request',
'Response' => 'Illuminate\Support\Facades\Response',
'Route' => 'Illuminate\Support\Facades\Route',
'Schema' => 'Illuminate\Support\Facades\Schema',
'Session' => 'Illuminate\Support\Facades\Session',
'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
'View' => 'Illuminate\Support\Facades\View',
//'Debugbar' => 'Barryvdh\Debugbar\Facade',
'Twig' => 'TwigBridge\Facade\Twig',
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment