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); }
public function __construct(array $attributes = []) { parent::__construct($attributes); $this->prefixSlug = getSlug('team'); }
public function rules() { $rules = parent::rules(); return array_merge($rules, ['client' => 'required']); }
public function rules() { $rules = parent::rules(); return array_merge($rules, ['content' => '']); }