Allow micropub to post notes and articles

This commit is contained in:
Jonny Barnes 2022-11-29 19:58:44 +00:00
parent 5eed665801
commit ca6205d2a6
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
9 changed files with 102 additions and 49 deletions

View file

@ -53,11 +53,16 @@ class Article extends Model
}
/**
* We shall set a blacklist of non-modifiable model attributes.
* The attributes that are mass assignable.
*
* @var array
* @var array<int, string>
*/
protected $guarded = ['id'];
protected $fillable = [
'url',
'title',
'main',
'published',
];
protected function html(): Attribute
{