'integer', 'title' => 'string', 'categories' => 'array', 'author' => 'string', 'images' => 'array', 'release_date' => 'datetime:Y-m-d', 'update_date' => 'datetime:Y-m-d', 'project_url' => 'string', 'project_version' => 'string', 'description' => 'string', 'visible' => 'boolean' ]; public function getReleaseDateAttribute($value): String { return $value; } public function setReleaseDateAttribute($value): void { $this->attributes['release_date'] = $value; } public function getUpdateDateAttribute($value): String|null { return $value; } public function setUpdateDateAttribute($value): void { if (!is_null($value)) $this->attributes['update_date'] = $value; else $this->attributes['update_date'] = null; } public function scopeVisibled(Builder $builder) { return $builder->where('visible', true); } }