Menus

Navigation around your application

Menus allow users to create or edit menus that can be used inside your applications. These menus can be nested as many as they want without limit, and each menu has its own type so that users can be redirected to their corresponding type.

Custom menu type

<?php
namespace App\Core\Contracts;
interface MenuInterface
{
public function isShow(): bool;
public function isActive(): bool;
public function url(): string;
public function icon(): string;
public function label(): string;
}

Register Custom Menu Type

config('cms.menus.types')

have a plugin?

public function boot() {
$this->addCmsMenus(array | callback | string)
}