*/ use HasFactory; public const ?string CREATED_AT = null; public const ?string UPDATED_AT = null; protected $fillable = [ 'press_release_id', 'portal', 'url', 'state', 'verdict', 'coverage_state', 'indexing_state', 'robots_txt_state', 'page_fetch_state', 'last_crawl_time', 'google_canonical', 'user_canonical', 'raw', 'checked_at', ]; /** * @return array */ protected function casts(): array { return [ 'portal' => Portal::class, 'state' => IndexState::class, 'last_crawl_time' => 'datetime', 'checked_at' => 'datetime', 'raw' => 'array', ]; } /** * @return BelongsTo */ public function pressRelease(): BelongsTo { return $this->belongsTo(PressRelease::class); } }