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