Created
February 25, 2015 16:24
-
-
Save vanchelo/b1a26cf63b9ae3aef5ca to your computer and use it in GitHub Desktop.
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\Foundation\AliasLoader; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Register any application services. | |
* | |
* This service provider is a great spot to register your various container | |
* bindings with the application. As you can see, we are registering our | |
* "Registrar" implementation here. You can add your own bindings too! | |
* | |
* @return void | |
*/ | |
public function register() | |
{ | |
$this->registerServiceProviders(); | |
} | |
private function registerServiceProviders() | |
{ | |
$providers = [ | |
'Barryvdh\Debugbar\ServiceProvider', | |
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider', | |
]; | |
foreach ($providers as $provider) | |
{ | |
$this->app->register($provider); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment