public function __construct(array $attributes = array()) { $url = '/system/:attachment/security_tips/:id_partition/:style/:filename'; $this->hasAttachedFile('preview', ['styles' => ['medium' => ['dimensions' => '214x214#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]], 'small' => ['dimensions' => '100x100#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]]], 'url' => $url]); $this->attachImage('photo_preview_for_main', '400x250#', $url); parent::__construct($attributes); }
/** * Creates a new instance of the model */ public function __construct(array $attributes = array()) { parent::__construct($attributes); if (!static::$app) { static::$app = app(); } }
public function __construct(array $attributes = array()) { $this->hasAttachedFile('documentation'); $this->hasAttachedFile('instruction'); $this->hasAttachedFile('certificate'); parent::__construct($attributes); }
/** * Create a new ConfideUser instance. */ public function __construct(array $attributes = array()) { parent::__construct($attributes); if (!static::$app) { static::$app = app(); } $this->table = static::$app['config']->get('auth.table'); }
/** * Adding purge filters * * @param array $attributes */ function __construct($attributes = array()) { parent::__construct($attributes); $this->purgeFilters[] = function ($key) { $purge = array('repassword', 'agree'); return !in_array($key, $purge); }; }
/** * Creates a new instance of the model */ public function __construct(array $attributes = array()) { parent::__construct($attributes); if (!static::$app) { static::$app = app(); } $this->table = static::$app['config']->get('workflow::resourcenode_table'); }
public function __construct(array $attributes = array()) { $url = '/system/:attachment/works/:id_partition/:style/:filename'; $this->hasAttachedFile('preview', ['styles' => ['medium' => ['dimensions' => '214x214#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]], 'small' => ['dimensions' => '100x100#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]]], 'url' => $url]); // мб добавить аргумент ['medium' => '416x214#', 'small' => '100x100#'] и вынести в trait $this->attachImage('photo_preview_for_main', '400x250#', $url); $this->attachImage('big_preview', '416x214#', $url); $this->attachImage('main_photo', '810x457#', $url); $this->attachImage('second_photo', '400x214#', $url); $this->attachImage('third_photo', '400x214#', $url); $this->attachImage('client_photo', '214x214#', $url); parent::__construct($attributes); }
/** * Creates a new instance of the model */ public function __construct(array $attributes = array()) { parent::__construct($attributes); $this->table = Config::get('workflow::resourcelog_table'); }
public function __construct(array $attributes = array()) { $this->hasAttachedFile('photo', ['styles' => ['medium' => '300x300#', 'thumb' => '80x80#'], 'default_url' => '/system/missing.jpg', 'keep_old_files' => true]); parent::__construct($attributes); }
public function __construct(array $attributes = array()) { $this->hasAttachedFile('picture', ['styles' => ['medium' => '300x300', 'thumb' => '100x100'], 'default_url' => 'missing-material.jpg']); parent::__construct($attributes); }
public function __construct(array $attributes = array()) { $this->hasAttachedFile('img', ['styles' => ['medium' => ['dimensions' => '214x214#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]], 'small' => ['dimensions' => '100x100#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]]], 'url' => '/system/:attachment/:model/:id_partition/:style/:filename']); parent::__construct($attributes); }
/** * Create a new Eloquent model instance. * * @param array $attributes * @return void */ public function __construct(array $attributes = array()) { $this->{$this->getKeyName()} = (string) $this->generateNewId(); parent::__construct($attributes); }
/** * Creates a new instance of the model */ public function __construct(array $attributes = array()) { parent::__construct($attributes); $this->table = Config::get('entrust::permissions_table'); }