Beispiel #1
0
 public function __construct(array $attributes = [])
 {
     $this->fillable = array_merge($this->fillable, ['parent_id']);
     $this->aliases = array_merge($this->aliases, ['parent_id' => 'Parent']);
     $this->prefixSlug = getSlug('staticpage');
     parent::__construct($attributes);
 }
Beispiel #2
0
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->prefixSlug = getSlug('team');
 }
Beispiel #3
0
 public function rules()
 {
     $rules = parent::rules();
     return array_merge($rules, ['client' => 'required']);
 }
Beispiel #4
0
 public function rules()
 {
     $rules = parent::rules();
     return array_merge($rules, ['content' => '']);
 }