<?php namespace tps\Airport\Models;

use Model;

/**
 * Model
 */
class Menu extends Model
{
    use \October\Rain\Database\Traits\Validation;

    use \October\Rain\Database\Traits\SoftDelete;

    protected $dates = ['deleted_at'];
    public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel'];

    public $translatable = [
        'sub_menu',
        'name'
    ];

    protected $jsonable = ['sub_menu'];



    /**
     * @var string The database table used by the model.
     */
    public $table = 'tps_airport_menu';

    /**
     * @var array Validation rules
     */
    public $rules = [
        'menu_slug' => 'required|unique:tps_airport_menu'
    ];
}
