public function usingAdmin()
    {

        // Define constants that Decoy uses
        if (!defined('FORMAT_DATE')) {
            define('FORMAT_DATE', __('decoy::base.constants.format_date'));
        }
        if (!defined('FORMAT_DATETIME')) {
            define('FORMAT_DATETIME', __('decoy::base.constants.format_datetime'));
        }
        if (!defined('FORMAT_TIME')) {
            define('FORMAT_TIME', __('decoy::base.constants.format_time'));
        }

        // Register global and named middlewares
        $this->registerMiddlewares();

        // Use Decoy's auth by default, while at an admin path
        Config::set('auth.defaults', [
            'guard'     => 'decoy',
            'passwords' => 'decoy',
        ]);

        // Set the default mailer settings
        Config::set('mail.from', [
            'address' => Config::get('decoy.core.mail_from_address'),
            'name' => Config::get('decoy.core.mail_from_name'),
        ]);

        // Config Former
        $this->configureFormer();

        // Delegate events to Decoy observers
        $this->delegateAdminObservers();

        // Use Boostrap 3 classes in Laravel 5.6
        if (method_exists(Paginator::class, 'useBootstrapThree')) {
            Paginator::useBootstrapThree();
        }
    }