예제 #1
0
 /**
  * Create a new AdministratorModel instance.
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     if (!static::$app) {
         static::$app = app();
     }
     $this->table = 'cb_administrators';
 }
예제 #2
0
 public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('avatar', ['styles' => ['medium' => '300x300', 'thumb' => '100x100'], 'default_url' => 'missing.png']);
     parent::__construct($attributes);
 }