コード例 #1
0
 /**
  * Create a new Mongolid model instance.
  *
  * @param  array  $attributes
  * @return void
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     // Set the prefix
     $this->prefix = \Config::get('verify-l4-mongolid::prefix', 'test');
     $this->collection = $this->prefix . $this->collection;
 }
コード例 #2
0
 /**
  * Create a new ConfideMongoUser instance.
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     if (!static::$app) {
         static::$app = app();
     }
     $this->collection = static::$app['config']->get('auth.table');
 }