- 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>
29 lines
631 B
PHP
29 lines
631 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin\Inventory;
|
|
|
|
use App\Http\Requests\Inventory\StoreDisposalReasonRequest;
|
|
use App\Models\DisposalReason;
|
|
|
|
class DisposalReasonController extends SettingCrudController
|
|
{
|
|
protected function modelClass(): string
|
|
{
|
|
return DisposalReason::class;
|
|
}
|
|
|
|
protected function viewPrefix(): string
|
|
{
|
|
return 'admin.inventory.disposal-reasons';
|
|
}
|
|
|
|
protected function redirectRoute(): string
|
|
{
|
|
return 'admin.inventory.general';
|
|
}
|
|
|
|
protected function storeRequestClass(): string
|
|
{
|
|
return StoreDisposalReasonRequest::class;
|
|
}
|
|
}
|