src/SearchyServiceProvider.php
public function registerSearchBuilder()
    {
        $this->app->singleton('searchy', function (Container $app) {
            $config = $app['config'];

            return new SearchBuilder($config);
        });

        $this->app->alias('searchy', SearchBuilder::class);
    }
public function registerSearchBuilder()
    {
        $this->app->singleton('searchy', function (Container $app) {
            $config = $app['config'];

            return new SearchBuilder($config);
        });

        $this->app->alias('searchy', SearchBuilder::class);
    }
public function registerSearchBuilder ( ) { $ this -> app -> singleton ( 'searchy' , function ( Container $ app ) { $ config = $ app [ 'config' ] ; return new SearchBuilder ( $ config ) ; } ) ; $ this -> app -> alias ( 'searchy' , SearchBuilder :: class ) ; }
Register the search builder class.

@return void
Register the search builder class .