first commit
This commit is contained in:
18
app/Support/TeamPermissions.php
Normal file
18
app/Support/TeamPermissions.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
readonly class TeamPermissions
|
||||
{
|
||||
public function __construct(
|
||||
public bool $canUpdateTeam,
|
||||
public bool $canDeleteTeam,
|
||||
public bool $canAddMember,
|
||||
public bool $canUpdateMember,
|
||||
public bool $canRemoveMember,
|
||||
public bool $canCreateInvitation,
|
||||
public bool $canCancelInvitation,
|
||||
) {
|
||||
//
|
||||
}
|
||||
}
|
||||
18
app/Support/UserTeam.php
Normal file
18
app/Support/UserTeam.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
readonly class UserTeam
|
||||
{
|
||||
public function __construct(
|
||||
public int $id,
|
||||
public string $name,
|
||||
public string $slug,
|
||||
public bool $isPersonal,
|
||||
public ?string $role,
|
||||
public ?string $roleLabel,
|
||||
public ?bool $isCurrent = null,
|
||||
) {
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user