<?php

namespace App\Models\Web;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Language;

class Page extends Model
{
    use HasFactory;

    protected $fillable = [
        'language_id', 'title', 'slug', 'description', 'meta_title', 'meta_description', 'attach', 'status',
    ];

    public function language()
    {
        return $this->belongsTo(Language::class, 'language_id');
    }
}
