-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tharinda Rodrigo
committed
Aug 2, 2023
1 parent
2f73634
commit 276d6fb
Showing
21 changed files
with
250 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<?php | ||
|
||
return [ | ||
/* | ||
/* | ||
|------------------------------------------------- ------------------------- | ||
| Fields | ||
|------------------------------------------------- ------------------------- | ||
*/ | ||
|
||
'field.guard_name' => 'Аутентифікація (guard)', | ||
'field.name' => "Ім'я", | ||
'field.permissions' => 'Дозволи', | ||
'field.roles' => 'Ролі', | ||
/* | ||
'field.guard_name' => 'Аутентифікація (guard)', | ||
'field.name' => "Ім'я", | ||
'field.permissions' => 'Дозволи', | ||
'field.roles' => 'Ролі', | ||
/* | ||
|------------------------------------------------- ------------------------- | ||
| Labels | ||
|------------------------------------------------- ------------------------- | ||
*/ | ||
|
||
'section.permission' => 'Дозвол', | ||
'section.permissions' => 'Дозволи', | ||
'section.role' => 'Роль', | ||
'section.roles' => 'Ролі', | ||
'section.roles_and_permissions' => 'Ролі та дозволи', | ||
]; | ||
'section.permission' => 'Дозвол', | ||
'section.permissions' => 'Дозволи', | ||
'section.role' => 'Роль', | ||
'section.roles' => 'Ролі', | ||
'section.roles_and_permissions' => 'Ролі та дозволи', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace Althinect\FilamentSpatieRolesPermissions; | ||
|
||
use Althinect\FilamentSpatieRolesPermissions\Resources\PermissionResource; | ||
use Althinect\FilamentSpatieRolesPermissions\Resources\RoleResource; | ||
use Filament\Contracts\Plugin; | ||
use Filament\Panel; | ||
|
||
class FilamentSpatieRolesPermissionsPlugin implements Plugin | ||
{ | ||
public function getId(): string | ||
{ | ||
return 'filament-spatie-roles-permissions'; | ||
} | ||
|
||
public function register(Panel $panel): void | ||
{ | ||
$panel | ||
->resources([ | ||
RoleResource::class, | ||
PermissionResource::class, | ||
]); | ||
|
||
} | ||
|
||
public static function make(): static | ||
{ | ||
return app(static::class); | ||
} | ||
|
||
public function boot(Panel $panel): void | ||
{ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.