app/Providers/SphinxServiceProvider.php
/**
     * Register any application services.
     *
     * @return void
     */
Register any application services.
@return void
Register any application services . @return void
public function register()
    {
        $this->app->singleton('sphinx', function ($app) {
            $conn = new Connection();
            $conn->setParams(array('host' => config('sphinx.host'), 'port' => config('sphinx.port')));
            $sphinx = new SphinxQL($conn);
            $sphinx->match('','','')/;
            return $sphinx;
        });
    }
public function register ( ) { $ this -> app -> singleton ( 'sphinx' , function ( $ app ) { $ conn = new Connection ( ) ; $ conn -> setParams ( array ( 'host' => config ( 'sphinx.host' ) , 'port' => config ( 'sphinx.port' ) ) ) ; $ sphinx = new SphinxQL ( $ conn ) ; return $ sphinx ; } ) ; }
Register any application services.
Register any application services .
// //            $sphinx->match('','','')/;