wip
This commit is contained in:
23
app/Nova/Repeater/InventoryHistoryItemRepeater.php
Normal file
23
app/Nova/Repeater/InventoryHistoryItemRepeater.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Nova\Repeater;
|
||||
|
||||
use Laravel\Nova\Fields\Repeater\Repeatable;
|
||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
use Nurmuhammet\InventoryHistoryItems\InventoryHistoryItems;
|
||||
|
||||
class InventoryHistoryItemRepeater extends Repeatable
|
||||
{
|
||||
/**
|
||||
* Get the fields displayed by the repeatable.
|
||||
*/
|
||||
public function fields(NovaRequest $request): array
|
||||
{
|
||||
return [
|
||||
InventoryHistoryItems::make(__('Products'), 'quantity')
|
||||
->fullWidth()
|
||||
->options([])
|
||||
->fillUsing(function ($request, $model, $attribute, $requestAttribute) {}),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user