priority menu item
This commit is contained in:
@ -12,6 +12,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property string label
|
||||
* @property string url
|
||||
* @property int status
|
||||
* @property int priority
|
||||
* @method static find($id)
|
||||
*/
|
||||
|
||||
@ -21,7 +22,7 @@ class Menu extends Model
|
||||
const ACTIVE_STATUS = 1;
|
||||
|
||||
protected $table = 'menu';
|
||||
protected $fillable = ['parent_id', 'icon_file', 'icon_font', 'label', 'url', 'status', 'slug'];
|
||||
protected $fillable = ['parent_id', 'icon_file', 'icon_font', 'label', 'url', 'status', 'slug', 'priority'];
|
||||
protected array $dates = ['deleted_at'];
|
||||
|
||||
public static function labels(): array
|
||||
@ -34,6 +35,7 @@ class Menu extends Model
|
||||
'url' => 'URL',
|
||||
'status' => 'Статус',
|
||||
'slug' => 'Slug',
|
||||
'priority' => 'Приоритет'
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user