mirror of
				https://github.com/anna-sara/filament_inventory
				synced 2025-10-27 10:57:13 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Filament\Resources\ItemResource\Pages;
 | |
| 
 | |
| use App\Filament\Resources\ItemResource;
 | |
| use Filament\Actions;
 | |
| use Filament\Resources\Pages\EditRecord;
 | |
| 
 | |
| class EditItem extends EditRecord
 | |
| {
 | |
|     protected static string $resource = ItemResource::class;
 | |
| 
 | |
|     protected function getHeaderActions(): array
 | |
|     {
 | |
|         return [
 | |
|             Actions\DeleteAction::make(),
 | |
|         ];
 | |
|     }
 | |
| 
 | |
|     protected function getRedirectUrl(): string
 | |
|     {
 | |
|         return $this->getResource()::getUrl('index');
 | |
|     }
 | |
| 
 | |
|     public function getHeading(): string
 | |
|     {
 | |
|         return  $this->getRecord()->desc;
 | |
|     }
 | |
| }
 |