5
5
use Native \Laravel \Client \Client ;
6
6
use Native \Laravel \Contracts \MenuItem ;
7
7
use Native \Laravel \Enums \RolesEnum ;
8
- use Native \Laravel \Menu \Items ;
9
8
10
9
class MenuBuilder
11
10
{
@@ -21,7 +20,7 @@ public function make(MenuItem ...$items): Menu
21
20
22
21
return $ menu ;
23
22
}
24
-
23
+
25
24
public function create (MenuItem ...$ items ): void
26
25
{
27
26
$ this ->make (...$ items )
@@ -44,12 +43,12 @@ public function label(): Items\Label
44
43
return new Items \Label ($ label );
45
44
}
46
45
47
- public function goToUrl (string $ url , string $ label = null , ?string $ hotkey = null ): Items \GoToUrl
46
+ public function goToUrl (string $ url , ? string $ label = null , ?string $ hotkey = null ): Items \GoToUrl
48
47
{
49
48
return new Items \GoToUrl ($ url , $ label , $ hotkey );
50
49
}
51
50
52
- public function goToRoute (string $ route , string $ label = null , ?string $ hotkey = null ): Items \GoToUrl
51
+ public function goToRoute (string $ route , ? string $ label = null , ?string $ hotkey = null ): Items \GoToUrl
53
52
{
54
53
return new Items \GoToUrl (route ($ route ), $ label , $ hotkey );
55
54
}
@@ -59,12 +58,12 @@ public function checkbox(string $label, bool $checked = false, ?string $hotkey =
59
58
return new Items \Checkbox ($ label , $ checked , $ hotkey );
60
59
}
61
60
62
- public function event (string $ event , string $ label = null , ?string $ hotkey = null ): Items \Event
61
+ public function event (string $ event , ? string $ label = null , ?string $ hotkey = null ): Items \Event
63
62
{
64
63
return new Items \Event ($ event , $ label , $ hotkey );
65
64
}
66
65
67
- public function link (string $ url , string $ label = null , ?string $ hotkey = null ): Items \Link
66
+ public function link (string $ url , ? string $ label = null , ?string $ hotkey = null ): Items \Link
68
67
{
69
68
return new Items \Link ($ url , $ label , $ hotkey );
70
69
}
0 commit comments