Uploading content
This commit is contained in:
20
app/Tables/TableWithDragDropOrdering.php
Normal file
20
app/Tables/TableWithDragDropOrdering.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Tables;
|
||||
|
||||
use App\Models\Product;
|
||||
use App\Tables\Traits\WithColumnFormatter;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Mmt\GenericTable\Interfaces\IDragDropReordering;
|
||||
use Mmt\GenericTable\Interfaces\IGenericTable;
|
||||
|
||||
class TableWithDragDropOrdering implements IGenericTable, IDragDropReordering
|
||||
{
|
||||
use WithColumnFormatter;
|
||||
|
||||
public string $Order;
|
||||
|
||||
public Model|string $model = Product::class;
|
||||
|
||||
public string $orderingColumn = 'order';
|
||||
}
|
||||
Reference in New Issue
Block a user