Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Ingredients\Pages;
|
||||
|
||||
use App\Filament\Resources\Ingredients\IngredientResource;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class CreateIngredient extends CreateRecord
|
||||
{
|
||||
protected static string $resource = IngredientResource::class;
|
||||
}
|
||||
19
app/Filament/Resources/Ingredients/Pages/EditIngredient.php
Normal file
19
app/Filament/Resources/Ingredients/Pages/EditIngredient.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Ingredients\Pages;
|
||||
|
||||
use App\Filament\Resources\Ingredients\IngredientResource;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class EditIngredient extends EditRecord
|
||||
{
|
||||
protected static string $resource = IngredientResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
DeleteAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
19
app/Filament/Resources/Ingredients/Pages/ListIngredients.php
Normal file
19
app/Filament/Resources/Ingredients/Pages/ListIngredients.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Ingredients\Pages;
|
||||
|
||||
use App\Filament\Resources\Ingredients\IngredientResource;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListIngredients extends ListRecords
|
||||
{
|
||||
protected static string $resource = IngredientResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
CreateAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user