|Comment newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Comment newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Comment query() * @method static \Illuminate\Database\Eloquent\Builder|Comment whereArticleId($value) * @method static \Illuminate\Database\Eloquent\Builder|Comment whereAuthorName($value) * @method static \Illuminate\Database\Eloquent\Builder|Comment whereContent($value) * @method static \Illuminate\Database\Eloquent\Builder|Comment whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Comment whereId($value) * @mixin \Eloquent */ class Comment extends Model { /** @use HasFactory<\Database\Factories\CommentFactory> */ use HasFactory; protected $fillable = ['article_id', 'author_name', 'content', 'created_at']; public $timestamps = false; protected function casts(): array { return [ 'created_at' => 'datetime', ]; } public function article(): BelongsTo { return $this->belongsTo(Article::class); } }