wip
This commit is contained in:
1 parent
516c17326c
commit
504ddfbf8d
14 files changed
+138
-21
No files matched your search
@@ -5,6 +5,7 @@
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class UserForm
|
||||
@@ -29,7 +30,6 @@ public static function configure(Schema $schema): Schema
|
||||
|
||||
TextInput::make('phone')
|
||||
->label(__('Phone number'))
|
||||
->required()
|
||||
->unique(ignoreRecord: true),
|
||||
|
||||
TextInput::make('email')
|
||||
@@ -51,6 +51,14 @@ public static function configure(Schema $schema): Schema
|
||||
->preload()
|
||||
->native(false)
|
||||
->required(),
|
||||
|
||||
Select::make('branches')
|
||||
->label(__('Branches'))
|
||||
->relationship('branches', 'name', fn (Builder $query) => $query->distinct('id')->orderBy('id'))
|
||||
->multiple()
|
||||
->preload()
|
||||
->native(false)
|
||||
->required(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user