feat(User,Role): add users and role , permssion , filament panel | [USER , ROLE]

This commit is contained in:
2026-05-29 15:28:56 +03:30
parent d923019dc5
commit 1c408130d0
71 changed files with 3111 additions and 11 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Filament\Resources\Roles\Schemas;
use Filament\Forms\Components\CheckboxList;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class RoleForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('name')
->label('نام')
->required()
->maxLength(255),
TextInput::make('slug')
->label('شناسه')
->required()
->unique(ignoreRecord: true)
->maxLength(255),
CheckboxList::make('permissions')
->label('دسترسی‌ها')
->relationship(titleAttribute: 'name')
->searchable()
->bulkToggleable()
->columns(2),
]);
}
}