Skip to content

Commit

Permalink
Add View and Delete
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpetGexha committed Jun 25, 2023
1 parent 1f43190 commit de1c1f6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Filament/Resources/EmployeeshipResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public static function table(Table $table): Table
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
Tables\Actions\DeleteAction::make()
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/HardwareResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ public static function table(Table $table): Table
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
Tables\Actions\DeleteAction::make()
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/PeriphelResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public static function table(Table $table): Table
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
Tables\Actions\DeleteAction::make()
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/ProvaiderResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public static function table(Table $table): Table
->filters([])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
Tables\Actions\DeleteAction::make()
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/SoftwareResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public static function table(Table $table): Table
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
Tables\Actions\DeleteAction::make()
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
Expand Down
25 changes: 25 additions & 0 deletions database/seeders/PermissionsTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -796,5 +796,30 @@ public function run()
],
]);

$premission = [
'view_user',
'view_any_user',
'create_user',
'update_user',
'restore_user',
'restore_any_user',
'replicate_user',
'reorder_user',
'restore_user',
'delete_user',
'delete_any_user',
'force_delete_user',
'force_delete_any_user',
];

foreach ($premission as $key => $value) {
\DB::table('permissions')->insert([
'id' => $key + 112,
'name' => $value,
'guard_name' => 'web',
'created_at' => '2023-06-25 18:53:30',
'updated_at' => '2023-06-25 18:53:30',
]);
}
}
}

0 comments on commit de1c1f6

Please sign in to comment.