Created
January 29, 2015 01:52
-
-
Save ponko2/df91fd87ad997617ab63 to your computer and use it in GitHub Desktop.
localのときだけServiceProviderを追加
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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