55use Native \Laravel \Client \Client ;
66use Native \Laravel \Contracts \MenuItem ;
77use Native \Laravel \Enums \RolesEnum ;
8- use Native \Laravel \Menu \Items ;
98
109class MenuBuilder
1110{
@@ -21,7 +20,7 @@ public function make(MenuItem ...$items): Menu
2120
2221 return $ menu ;
2322 }
24-
23+
2524 public function create (MenuItem ...$ items ): void
2625 {
2726 $ this ->make (...$ items )
@@ -44,12 +43,12 @@ public function label(): Items\Label
4443 return new Items \Label ($ label );
4544 }
4645
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
4847 {
4948 return new Items \GoToUrl ($ url , $ label , $ hotkey );
5049 }
5150
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
5352 {
5453 return new Items \GoToUrl (route ($ route ), $ label , $ hotkey );
5554 }
@@ -59,12 +58,12 @@ public function checkbox(string $label, bool $checked = false, ?string $hotkey =
5958 return new Items \Checkbox ($ label , $ checked , $ hotkey );
6059 }
6160
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
6362 {
6463 return new Items \Event ($ event , $ label , $ hotkey );
6564 }
6665
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
6867 {
6968 return new Items \Link ($ url , $ label , $ hotkey );
7069 }
0 commit comments