<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class PageImage extends Model
{
    use HasFactory;

    protected $fillable = [
        'page_id',
        'file_name',
        'file_path',
        'title',
        'ordernum',
    ];

    public function page()
    {
        return $this->belongsTo(Page::class);
    }
}
