src/Providers/FoundationServiceProvider.php
protected function bindBladeCompiler(): void
    {
        $this->app->afterResolving('blade.compiler', function (BladeCompiler $bladeCompiler) {

            // @alerts('container')
            $bladeCompiler->directive('alerts', function ($container = null) {
                if (strcasecmp('()', $container) === 0) {
                    $container = null;
                }

                return "<?php echo app('notification')->container({$container})->show(); ?>";
            });
        });
    }
protected function bindBladeCompiler(): void
    {
        $this->app->afterResolving('blade.compiler', function (BladeCompiler $bladeCompiler) {

            // @alerts('container')
            $bladeCompiler->directive('alerts', function ($container = null) {
                if (strcasecmp('()', $container) === 0) {
                    $container = null;
                }

                return "<?php echo app('notification')->container({$container})->show(); ?>";
            });
        });
    }
protected function bindBladeCompiler ( ) : void { $ this -> app -> afterResolving ( 'blade.compiler' , function ( BladeCompiler $ bladeCompiler ) { // @alerts('container') $ bladeCompiler -> directive ( 'alerts' , function ( $ container = null ) { if ( strcasecmp ( '()' , $ container ) === 0 ) { $ container = null ; } return "<?php echo app('notification')->container({$container})->show(); ?>" ; } ) ; } ) ; }
Bind blade compiler.

@return void
Bind blade compiler .