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

@@ -11,7 +11,7 @@
/**
* Class RssPostKeyword
*
*
* @property int $id
* @property int $rss_post_id
* @property string $type
@@ -20,30 +20,27 @@
* @property string $value_lowercased
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @property RssPost $rss_post
*
* @package App\Models
*/
class RssPostKeyword extends Model
{
protected $table = 'rss_post_keywords';
protected $table = 'rss_post_keywords';
protected $casts = [
'rss_post_id' => 'int',
'is_main' => 'bool'
];
protected $casts = [
'rss_post_id' => 'int',
'is_main' => 'bool',
];
protected $fillable = [
'rss_post_id',
'type',
'is_main',
'value',
'value_lowercased'
];
protected $fillable = [
'rss_post_id',
'type',
'is_main',
'value',
'value_lowercased',
];
public function rss_post()
{
return $this->belongsTo(RssPost::class);
}
public function rss_post()
{
return $this->belongsTo(RssPost::class);
}
}