Skip to content

Commit 6cada39

Browse files
authored
Update role class with name property (#7)
1 parent 444ef5d commit 6cada39

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stubs/defined-role.stub

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
namespace {{ namespace }};
44

5-
use BinaryCats\Rbac\DefinedRole;
5+
use BinaryCats\LaravelRbac\DefinedRole;
66

77
class {{ class }} extends DefinedRole
88
{
9+
/**
10+
* Name of the role
11+
*/
12+
protected string $name = '';
13+
914
/** @var array|string[] */
1015
protected array $guards = [
1116
'web'

0 commit comments

Comments
 (0)