laravel-livewire-tables icon indicating copy to clipboard operation
laravel-livewire-tables copied to clipboard

Passing another variable on Cloumn use view

Open echoskydev opened this issue 2 years ago • 0 comments

`

return [

    Column::make('ID')->searchable()->sortable(),
    Column::make('Brand Name', 'brand.name')->searchable()->sortable(),
    Column::make('Name')->searchable()->sortable(),
    Column::make('Color')->searchable()->sortable()->view('cars.table-color'),
    Column::make('Accidents', 'accidents_count')->sortable(),
    Column::make()->view('cars.table-actions'),
];

`

i need passing another variable on ->view('cars.table-color')

->view('cars.table-color', ['var' => 1]) ===> not working

echoskydev avatar Aug 25 '23 08:08 echoskydev