Commit 43e8c60a authored by Taylor Otwell's avatar Taylor Otwell

Write a base app service provider.

parent d2937ea7
<?php namespace App\Providers;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
use Illuminate\Routing\Stack\Builder as Stack;
use Illuminate\Foundation\Support\Providers\AppServiceProvider as ServiceProvider;
class AppServiceProvider extends ServiceProvider {
......@@ -31,36 +31,4 @@ class AppServiceProvider extends ServiceProvider {
'Illuminate\Session\Middleware\Writer',
];
/**
* Bootstrap any necessary services.
*
* @return void
*/
public function boot()
{
// This service provider is a convenient place to register your services
// in the IoC container. If you wish, you may make additional methods
// or service providers to keep the code more focused and granular.
$this->app->stack(function(Stack $stack, Router $router)
{
return $stack
->middleware($this->stack)
->then(function($request) use ($router)
{
return $router->dispatch($request);
});
});
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment