Skip to content

Instantly share code, notes, and snippets.

@ponko2
Created January 29, 2015 01:52
Show Gist options
  • Save ponko2/df91fd87ad997617ab63 to your computer and use it in GitHub Desktop.
Save ponko2/df91fd87ad997617ab63 to your computer and use it in GitHub Desktop.
localのときだけServiceProviderを追加
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class ConfigServiceProvider extends ServiceProvider
{
/**
* Overwrite any vendor / package configuration.
*
* This service provider is intended to provide a convenient location for you
* to overwrite any "vendor" or package configuration that you may want to
* modify before the application handles the incoming request / command.
*
* @return void
*/
public function register()
{
config([
//
]);
if ($this->app->environment('local')) {
$this->app->register('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider');
$this->app->register('Barryvdh\Debugbar\ServiceProvider');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment