src/Providers/FoundationServiceProvider.php
protected function overrideNotificationMiddleware(): void
    {
        $this->app->singleton('Cortex\Foundation\Http\Middleware\NotificationMiddleware', function ($app) {
            return new NotificationMiddleware(
                $app['session.store'],
                $app['notification'],
                $app['config']->get('notification.session_key')
            );
        });
    }
protected function overrideNotificationMiddleware(): void
    {
        $this->app->singleton('Cortex\Foundation\Http\Middleware\NotificationMiddleware', function ($app) {
            return new NotificationMiddleware(
                $app['session.store'],
                $app['notification'],
                $app['config']->get('notification.session_key')
            );
        });
    }
protected function overrideNotificationMiddleware ( ) : void { $ this -> app -> singleton ( 'Cortex\Foundation\Http\Middleware\NotificationMiddleware' , function ( $ app ) { return new NotificationMiddleware ( $ app [ 'session.store' ] , $ app [ 'notification' ] , $ app [ 'config' ] -> get ( 'notification.session_key' ) ) ; } ) ; }
Override notification middleware.

@return void
Override notification middleware .