Esempio n. 1
0
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     Auth::extend('simple', function ($app) {
         $model = config('auth.model');
         return new UserProvider(new $model());
     });
     $this->app['db']->extend('neo4j', function ($config) {
         $conn = new Connection($config);
         $conn->setSchemaGrammar(new CypherGrammar());
         $conn->setQueryGrammar(new AppCypherGrammar());
         return $conn;
     });
 }
Esempio n. 2
0
 /**
  * Set the query grammar used by the connection.
  *
  * @param \Illuminate\Database\Query\Grammars\Grammar
  * @return void 
  * @static 
  */
 public static function setQueryGrammar($grammar)
 {
     //Method inherited from \Illuminate\Database\Connection
     \Vinelab\NeoEloquent\Connection::setQueryGrammar($grammar);
 }