/**
  * Boot the service provider.
  *
  * @return void
  */
 public function boot()
 {
     parent::boot();
     $this->publishes([realpath(__DIR__ . '/../../config/api.php') => config_path('api.php')]);
     $this->app['router']->middleware('api.auth', 'Dingo\\Api\\Http\\Middleware\\Auth');
     $this->app['router']->middleware('api.throttle', 'Dingo\\Api\\Http\\Middleware\\RateLimit');
 }
 /**
  * Boot the service provider.
  *
  * @return void
  */
 public function boot()
 {
     parent::boot();
     $this->app->routeMiddleware(['api.auth' => 'Dingo\\Api\\Http\\Middleware\\Auth', 'api.throttle' => 'Dingo\\Api\\Http\\Middleware\\RateLimit']);
 }