public function register()
    {
        /*
         * Register the e-mail checker
         */
        $this->app->singleton(EmailChecker::class, function ($app) {
            return new EmailChecker();
        });

        /*
         * Alias the dependency for ease.
         */
        $this->app->alias(EmailChecker::class, 'email.checker');
    }
public function register()
    {
        /*
         * Register the e-mail checker
         */
        $this->app->singleton(EmailChecker::class, function ($app) {
            return new EmailChecker();
        });

        /*
         * Alias the dependency for ease.
         */
        $this->app->alias(EmailChecker::class, 'email.checker');
    }
public function register ( ) { /*
         * Register the e-mail checker
         */ $ this -> app -> singleton ( EmailChecker :: class , function ( $ app ) { return new EmailChecker ( ) ; } ) ; /*
         * Alias the dependency for ease.
         */ $ this -> app -> alias ( EmailChecker :: class , 'email.checker' ) ; }
Register the factory in the application container.
Register the factory in the application container .