public function __construct(array $attributes = array()) { if (!isset(static::$booted[get_class($this)])) { static::boot(); static::$booted[get_class($this)] = true; } $this->fill($attributes); }
/** * Create a new MongoArdent model instance. * * @param array $attributes * @return \Fuitad\Ardent\Ardent */ public function __construct(array $attributes = array()) { parent::__construct($attributes); $this->validationErrors = new MessageBag(); }