public function __construct(array $attributes = []) { parent::__construct($attributes); $default = Setting::privateOnly()->pluck('value', 'key')->toArray(); $attributes = array_replace($default, $attributes); $this->fill($attributes); }
public function __construct(array $attributes = []) { parent::__construct($attributes); $this->forms = array_merge($this->postableforms, $this->forms); }
public function scopePrivateOnly($query) { $query = parent::newQuery(); return $query->where('publicable', false); }