Fixing some examples

This commit is contained in:
David
2025-05-03 01:57:26 -04:00
parent 9f12bc28d0
commit d64e9c00be
13 changed files with 132 additions and 29 deletions

View File

@@ -3,9 +3,17 @@
namespace App\Tables;
use App\Tables\Traits\WithColumnFormatter;
use Mmt\GenericTable\Interfaces\IExportable;
use Mmt\GenericTable\Interfaces\IGenericTable;
class TableWithColumnFormatter implements IGenericTable
class TableWithColumnFormatter implements IGenericTable, IExportable
{
use WithColumnFormatter;
public function onExport(\Mmt\GenericTable\Support\ExportEventArgs $args): \Illuminate\Http\Response|\Symfony\Component\HttpFoundation\BinaryFileResponse
{
$args->useStripTags = true;
$args->query->take(5);
return $args->export();
}
}