<?php

namespace App;

use Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Menu
 *
 * @property int $idmenu
 * @property string|null $nazev
 * @property string|null $route
 * @property string|null $element
 * @method static Builder|Menu newModelQuery()
 * @method static Builder|Menu newQuery()
 * @method static Builder|Menu query()
 * @method static Builder|Menu whereElement($value)
 * @method static Builder|Menu whereIdmenu($value)
 * @method static Builder|Menu whereNazev($value)
 * @method static Builder|Menu whereRoute($value)
 * @mixin Eloquent
 * @property int|null $id_pozice_menu
 * @method static Builder|Menu whereIdPoziceMenu($value)
 */
class Menu extends Model
{
    protected $table = 'menu';
    protected $primaryKey = 'idmenu';
    protected $fillable = ['nazev','route','element'];
    public $timestamps = false;

    /**
     * @return Menu[]|Builder[]|Collection
     */
    public static function getData()
    {
        return self::whereIdPoziceMenu(2)->get();
    }
}
