File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 22
33namespace Nwidart \Menus \Facades ;
44
5+ use Closure ;
56use Illuminate \Support \Facades \Facade ;
7+ use Nwidart \Menus \MenuBuilder ;
68
9+ /**
10+ * @method static MenuBuilder make($name, Closure $callback) Make new menu.
11+ * @method static MenuBuilder create($name, Closure $resolver) Create new menu.
12+ * @method static bool has(string $name) check if the menu exists.
13+ * @method static string|null instance(string $name) Get instance of the given meu if exists.
14+ * @method static void modify(string $name, Closure $callback) Modify a specific menu.
15+ * @method static string|null get(string $name, string $presenter = null, array $bindings = []) Render the menu tag by given name.
16+ * @method static string|null render(string $name, string $presenter = null, array $bindings = []) Render the menu tag by given name.
17+ * @method static mixed style() Get a stylesheet for enable multilevel menu.
18+ * @method static array all() Get all Menus.
19+ * @method static int count() Get Count from all menus.
20+ * @method static void destroy() Empty the current menus.
21+ */
722class Menu extends Facade
823{
924 /**
You can’t perform that action at this time.
0 commit comments