src/BouncerServiceProvider.php
protected function registerBouncer()
    {
        $this->app->singleton(Bouncer::class, function () {
            return Bouncer::make()
                ->withClipboard(new CachedClipboard(new ArrayStore))
                ->withGate($this->app->make(Gate::class))
                ->create();
        });
    }
protected function registerBouncer()
    {
        $this->app->singleton(Bouncer::class, function () {
            return Bouncer::make()
                ->withClipboard(new CachedClipboard(new ArrayStore))
                ->withGate($this->app->make(Gate::class))
                ->create();
        });
    }
protected function registerBouncer ( ) { $ this -> app -> singleton ( Bouncer :: class , function ( ) { return Bouncer :: make ( ) -> withClipboard ( new CachedClipboard ( new ArrayStore ) ) -> withGate ( $ this -> app -> make ( Gate :: class ) ) -> create ( ) ; } ) ; }
Register Bouncer as a singleton.

@return void
Register Bouncer as a singleton .