Update (keywords): new logic

This commit is contained in:
2023-11-23 02:15:41 +08:00
parent d2c2059531
commit b2762ecef2
15 changed files with 211 additions and 198 deletions

View File

@@ -69,6 +69,11 @@ class RssPost extends Model implements Feedable
'keyword_saved',
];
public function entities_keywords()
{
return $this->hasMany(RssPostKeyword::class);
}
public function category()
{
return $this->belongsTo(Category::class);