protected function registerContactMailer()
    {
        $this->app->bind('contact.mailer', function ($app) {
            $mail = $app['mailer'];
            $home = $app['url']->to('/');
            $path = $app['config']['contact.path'];
            $email = $app['config']['contact.email'];
            $name = $app['config']['app.name'];

            return new Mailer($mail, $home, $path, $email, $name);
        });

        $this->app->alias('contact.mailer', Mailer::class);
    }
protected function registerContactMailer()
    {
        $this->app->bind('contact.mailer', function ($app) {
            $mail = $app['mailer'];
            $home = $app['url']->to('/');
            $path = $app['config']['contact.path'];
            $email = $app['config']['contact.email'];
            $name = $app['config']['app.name'];

            return new Mailer($mail, $home, $path, $email, $name);
        });

        $this->app->alias('contact.mailer', Mailer::class);
    }
protected function registerContactMailer ( ) { $ this -> app -> bind ( 'contact.mailer' , function ( $ app ) { $ mail = $ app [ 'mailer' ] ; $ home = $ app [ 'url' ] -> to ( '/' ) ; $ path = $ app [ 'config' ] [ 'contact.path' ] ; $ email = $ app [ 'config' ] [ 'contact.email' ] ; $ name = $ app [ 'config' ] [ 'app.name' ] ; return new Mailer ( $ mail , $ home , $ path , $ email , $ name ) ; } ) ; $ this -> app -> alias ( 'contact.mailer' , Mailer :: class ) ; }
Register the contact mailer class.

@return void
Register the contact mailer class .