Skip to content

Commit

Permalink
Update role class with name property (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrillkalita authored Mar 22, 2024
1 parent 444ef5d commit 6cada39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stubs/defined-role.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

namespace {{ namespace }};

use BinaryCats\Rbac\DefinedRole;
use BinaryCats\LaravelRbac\DefinedRole;

class {{ class }} extends DefinedRole
{
/**
* Name of the role
*/
protected string $name = '';

/** @var array|string[] */
protected array $guards = [
'web'
Expand Down

0 comments on commit 6cada39

Please sign in to comment.