Skip to content

Commit

Permalink
Changes to files: app/Filament/Resources/FleetResource.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Oct 9, 2024
1 parent 11fd69a commit 94e1112
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions app/Filament/Resources/FleetResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
namespace Modules\Fleet\Filament\Resources;

use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Modules\Fleet\Filament\Resources\FleetResource\Pages;
use Modules\Base\Filament\Resources\BaseResource;
use Modules\Fleet\Models\Fleet;

class FleetResource extends Resource
class FleetResource extends BaseResource
{
protected static ?string $model = Fleet::class;

Expand Down Expand Up @@ -50,27 +47,4 @@ public static function table(Table $table): Table
]);
}

public static function getRelations(): array
{
return [
//
];
}

public static function getPages(): array
{
return [
'index' => Pages\ListFleets::route('/'),
'create' => Pages\CreateFleet::route('/create'),
'edit' => Pages\EditFleet::route('/{record}/edit'),
];
}

public static function getEloquentQuery(): Builder
{
return parent::getEloquentQuery()
->withoutGlobalScopes([
SoftDeletingScope::class,
]);
}
}

0 comments on commit 94e1112

Please sign in to comment.