예제 #1
0
파일: Contact.php 프로젝트: livecms/core
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $default = Setting::privateOnly()->pluck('value', 'key')->toArray();
     $attributes = array_replace($default, $attributes);
     $this->fill($attributes);
 }
예제 #2
0
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->forms = array_merge($this->postableforms, $this->forms);
 }
예제 #3
0
파일: Setting.php 프로젝트: livecms/core
 public function scopePrivateOnly($query)
 {
     $query = parent::newQuery();
     return $query->where('publicable', false);
 }