src/Flash/FlashServiceProvider.php
public function register()
    {
        $this->app->bind(FlashStore::class);

        $this->app->singleton('flash', function () {
            return $this->app->make(FlashBag::class);
        });
    }
public function register()
    {
        $this->app->bind(FlashStore::class);

        $this->app->singleton('flash', function () {
            return $this->app->make(FlashBag::class);
        });
    }
Register the service provider.

@return void