<?php

namespace App\Domains\Bio\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class BioBlock extends Model
{
    protected $guarded = ['id'];

    protected $casts = [
        'config' => 'array',
    ];

    /** @return BelongsTo<BioPage, $this> */
    public function bioPage(): BelongsTo
    {
        return $this->belongsTo(BioPage::class);
    }
}
