src/HandlebarsServiceProvider.php
protected function registerFileExtensions()
    {
        $this->app->extend('view', function ($env, $app) {
            $fileexts = $app['config']['handlebars.fileext'];

            foreach ($fileexts as $fileext) {
                $env->addExtension(trim($fileext, '.'), 'handlebars');
            }

            return $env;
        });
    }
protected function registerFileExtensions()
    {
        $this->app->extend('view', function ($env, $app) {
            $fileexts = $app['config']['handlebars.fileext'];

            foreach ($fileexts as $fileext) {
                $env->addExtension(trim($fileext, '.'), 'handlebars');
            }

            return $env;
        });
    }
protected function registerFileExtensions ( ) { $ this -> app -> extend ( 'view' , function ( $ env , $ app ) { $ fileexts = $ app [ 'config' ] [ 'handlebars.fileext' ] ; foreach ( $ fileexts as $ fileext ) { $ env -> addExtension ( trim ( $ fileext , '.' ) , 'handlebars' ) ; } return $ env ; } ) ; }
Register the file extensions.

@return void
Register the file extensions .