<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Menu extends Model
{
    protected $table = 'menus';        // MUST

    protected $primaryKey = 'id';      // MUST

    public $timestamps = true;         // MUST (your table has timestamps)

    protected $fillable = [
        'menu_category_id',
        'title',
        'slug',
        'url',
        'redirect_url',
        'position',
        'status',
    ];

    protected $casts = [
        'menu_category_id' => 'integer',
        'position' => 'integer',
        'status' => 'integer',
    ];
}
