- Abstrakte SettingCrudController-Basis für die kleinen Stammdaten-CRUDs - TaxRate/DeliveryTime/DisposalReason/MaterialQuality/Location/SupplierCategory/PackagingMaterial auf ~25-Zeilen-Konfiguration reduziert - Identische Update*Request-Klassen entfernt (Update nutzt Store-Request, via updateRequestClass() überschreibbar) - Bilanz -441/+73 Zeilen; Grundlage für die Lagerort-CRUDs in AP-21 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
34 lines
760 B
PHP
34 lines
760 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin\Inventory;
|
|
|
|
use App\Http\Requests\Inventory\StorePackagingMaterialRequest;
|
|
use App\Models\PackagingMaterial;
|
|
|
|
class PackagingMaterialController extends SettingCrudController
|
|
{
|
|
protected function modelClass(): string
|
|
{
|
|
return PackagingMaterial::class;
|
|
}
|
|
|
|
protected function viewPrefix(): string
|
|
{
|
|
return 'admin.inventory.packaging-materials';
|
|
}
|
|
|
|
protected function redirectRoute(): string
|
|
{
|
|
return 'admin.inventory.packaging-materials.index';
|
|
}
|
|
|
|
protected function storeRequestClass(): string
|
|
{
|
|
return StorePackagingMaterialRequest::class;
|
|
}
|
|
|
|
protected function newModelAttributes(): array
|
|
{
|
|
return ['pos' => 0];
|
|
}
|
|
}
|