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