view for component [tablebuilder]`
<x-tablebuilder :data="$data" :pagination="{ perPage: 10 }" :search columns="
item_id,
{
label: 'Name',
name: 'fr_name',
resolve: row => row.fr.name
},
{
label: 'Status',
name: 'status',
filter: row => getStatusFilterOptions(),
format: row => getStateUsing(row.status)
},
transaction_type,
created_at,
amount,
entry_type,
closing_balance
" @pagination:change="updateData" @search:change="updateData" />
if I use above code it showing error as : Unable to locate a class or view for component [tablebuilder]
8 Replies
Is this from chatgpt?
jesus christ...
yes...
There are a few things that don't make sense in the code... My suggestion is to get more familiar with Laravel, Blade and Filament by reading the official documentation before trying to generate large amounts of code with ChatGPT and other tools like it.
ok
everything doesnt make sense π
I'm glad it's not just me....
Dan we need to look at adding something, somewhre about DO NOT USE ChatGPT to generate any filamentphp code. Learn livewire/php first
its already in the rules i guess