Esempio n. 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);
 }
Esempio n. 2
0
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->forms = array_merge($this->postableforms, $this->forms);
 }
Esempio n. 3
0
 public function scopePrivateOnly($query)
 {
     $query = parent::newQuery();
     return $query->where('publicable', false);
 }