/** * 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; }
/** * 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'); }