Refactor table components to use GenericTableSettings and remove deprecated classes
This commit is contained in:
@@ -6,10 +6,16 @@ use App\Models\Product;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Mmt\GenericTable\Components\ColumnCollection;
|
||||
use Mmt\GenericTable\Interfaces\IGenericTable;
|
||||
use Mmt\GenericTable\Support\GenericTableSettings;
|
||||
|
||||
class TableWithnNoSettings implements IGenericTable
|
||||
{
|
||||
public Model|string $model = Product::class;
|
||||
public GenericTableSettings $tableSettings;
|
||||
|
||||
public ColumnCollection $columns;
|
||||
public function __construct()
|
||||
{
|
||||
$this->tableSettings = new GenericTableSettings(
|
||||
Product::class
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user