-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CRUD pages for Products/Services
- Loading branch information
1 parent
5a62065
commit cb37c38
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
app/Filament/Resources/ProductsServiceResource/Pages/CreateProductsService.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
19 changes: 19 additions & 0 deletions
19
app/Filament/Resources/ProductsServiceResource/Pages/EditProductsService.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), | ||
]; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
app/Filament/Resources/ProductsServiceResource/Pages/ListProductsServices.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), | ||
]; | ||
} | ||
} |