Skip to content

Commit

Permalink
Add CRUD pages for Products/Services
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Aug 23, 2024
1 parent 5a62065 commit cb37c38
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace App\Filament\Resources\ProductsServiceResource\Pages;

use App\Filament\Resources\ProductsServiceResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;

class CreateProductsService extends CreateRecord
{
protected static string $resource = ProductsServiceResource::class;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Filament\Resources\ProductsServiceResource\Pages;

use App\Filament\Resources\ProductsServiceResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;

class EditProductsService extends EditRecord
{
protected static string $resource = ProductsServiceResource::class;

protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Filament\Resources\ProductsServiceResource\Pages;

use App\Filament\Resources\ProductsServiceResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;

class ListProductsServices extends ListRecords
{
protected static string $resource = ProductsServiceResource::class;

protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

0 comments on commit cb37c38

Please sign in to comment.