Environment service providers and aliases.

Submitted by hosmelq - 10 years ago

Sometimes you need to use some packages based on the environment in which the application is running in, for example "development". You can append environment service providers and aliases in your development configuration file "app/config/development/app.php" with the "append_config" helper method.

<?php

return array(

    /*
    |--------------------------------------------------------------------------
    | Append environment service providers
    |--------------------------------------------------------------------------
    */

    'providers' => append_config(array(

        'Clockwork\Support\Laravel\ClockworkServiceProvider',

    )),

    /*
    |--------------------------------------------------------------------------
    |  Append environment aliases
    |--------------------------------------------------------------------------
    */

    'aliases' => append_config(array(

        'Clockwork'       => 'Clockwork\Support\Laravel\Facade',

    )),

);