pint run
This commit is contained in:
1 parent
00bcaa2b93
commit
1559580ceb
37 files changed
+211
-162
No files matched your search
@@ -2,9 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\Users\Schemas;
|
||||
|
||||
use App\Filament\Resources\Groups\GroupResource;
|
||||
use App\Filament\Resources\Groups\Schemas\GroupForm;
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\DateTimePicker;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
@@ -36,7 +34,7 @@ class UserForm
|
||||
->relationship('groups', 'name')
|
||||
->label('Gruppen')
|
||||
->preload()
|
||||
->createOptionForm(function(Schema $schema) {
|
||||
->createOptionForm(function (Schema $schema) {
|
||||
return GroupForm::configure($schema);
|
||||
})
|
||||
->multiple(),
|
||||
|
||||
@@ -24,10 +24,10 @@ class UsersTable
|
||||
->dateTime()
|
||||
->sortable(),
|
||||
TextColumn::make('roles.title')
|
||||
->label("Rollen")
|
||||
->label('Rollen')
|
||||
->toggleable(),
|
||||
TextColumn::make('groups.name')
|
||||
->label("Gruppen")
|
||||
->label('Gruppen')
|
||||
->toggleable(),
|
||||
TextColumn::make('created_at')
|
||||
->dateTime()
|
||||
|
||||
@@ -15,19 +15,22 @@ use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use UnitEnum;
|
||||
use Override;
|
||||
|
||||
class UserResource extends Resource
|
||||
{
|
||||
protected static ?string $model = User::class;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::User;
|
||||
protected static string | UnitEnum | null $navigationGroup = 'Verwaltung';
|
||||
|
||||
protected static ?string $navigationLabel = "Benutzer";
|
||||
protected static ?string $pluralLabel = "Benutzer";
|
||||
protected static ?string $pluralModelLabel = "Benutzer";
|
||||
protected static ?string $modelLabel = "Benutzer";
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Verwaltung';
|
||||
|
||||
protected static ?string $navigationLabel = 'Benutzer';
|
||||
|
||||
protected static ?string $pluralLabel = 'Benutzer';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'Benutzer';
|
||||
|
||||
protected static ?string $modelLabel = 'Benutzer';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user