diff --git a/app/Filament/App/Resources/UserResource.php b/app/Filament/App/Resources/UserResource.php new file mode 100644 index 00000000..558676ff --- /dev/null +++ b/app/Filament/App/Resources/UserResource.php @@ -0,0 +1,64 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\BulkActionGroup::make([ + Tables\Actions\DeleteBulkAction::make(), + ]), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListUsers::route('/'), + 'create' => Pages\CreateUser::route('/create'), + 'edit' => Pages\EditUser::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/App/Resources/UserResource/Pages/CreateUser.php b/app/Filament/App/Resources/UserResource/Pages/CreateUser.php new file mode 100644 index 00000000..88a03250 --- /dev/null +++ b/app/Filament/App/Resources/UserResource/Pages/CreateUser.php @@ -0,0 +1,12 @@ +