We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd61574 commit a7d9a52Copy full SHA for a7d9a52
src/Exceptions/InvalidGroupException.php
@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace Sukristyan\LaravelMenuWrapper\Exceptions;
4
5
+use InvalidArgumentException;
6
7
+class InvalidGroupException extends InvalidArgumentException
8
+{
9
+ public static function create(string $given, array $expect)
10
+ {
11
+ $implode = implode(', ', $expect);
12
+ return new static("The given role or permission should use guard `{$implode}` instead of `{$given}`.");
13
+ }
14
+}
0 commit comments