Skip to content

Instantly share code, notes, and snippets.

@vanchelo
Created February 25, 2015 16:24
Show Gist options
  • Save vanchelo/b1a26cf63b9ae3aef5ca to your computer and use it in GitHub Desktop.
Save vanchelo/b1a26cf63b9ae3aef5ca to your computer and use it in GitHub Desktop.
<?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