From 321da52194383fee7eca8a65ed942873bccd4698 Mon Sep 17 00:00:00 2001 From: raza9798 Date: Thu, 29 Aug 2024 02:52:29 +0530 Subject: [PATCH] user resources created --- app/Filament/App/Resources/UserResource.php | 64 +++++++++++++++++++ .../UserResource/Pages/CreateUser.php | 12 ++++ .../Resources/UserResource/Pages/EditUser.php | 19 ++++++ .../UserResource/Pages/ListUsers.php | 19 ++++++ 4 files changed, 114 insertions(+) create mode 100644 app/Filament/App/Resources/UserResource.php create mode 100644 app/Filament/App/Resources/UserResource/Pages/CreateUser.php create mode 100644 app/Filament/App/Resources/UserResource/Pages/EditUser.php create mode 100644 app/Filament/App/Resources/UserResource/Pages/ListUsers.php 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 @@ +