protected function mapRoutes()
    {
        $this->app['events']->listen('kernel.handling', function () {
            // Gatilho para arquivo routes.php
            $file_route = app_path('routes.php');
            if (files()->exists($file_route)) {
                require $file_route;
            }

            // Web
            router()->group(['middleware' => ['web']], function (Router $router) {
                event()->fire(new PublicRegisterRoutes($router));
                event()->fire(new PublicTenantRegisterRoutes($router));
                event()->fire(new PrivateRegisterRoutes($router));
            });

            // Api
            router()->group(['middleware' => ['api'], 'prefix' => 'api'], function (Router $router) {
                event()->fire(new ApiRegisterRoutes($router));
            });
        });
    }