How do I save the data clicked in the action menu to the database?

When I press Add to cart in the action menu, I want to save the data of the data I click on that menu in the database to my cart table. Is this possible?
return $table
->columns([
Tables\Columns\TextColumn::make('name')->label(__('custom.product_name')),
Tables\Columns\TextColumn::make('price')->label(__('custom.product_name'))->label(__('custom.product_price'))->currency('try'),
Tables\Columns\TextColumn::make('sale_type')->label(__('custom.product_name'))->label(__('custom.product_sale_type')),
])
->filters([
//
])
->actions([
Action::make('create_basket')
->url('/admin/company-creates/sort')
->label('Add Basket'),
return $table
->columns([
Tables\Columns\TextColumn::make('name')->label(__('custom.product_name')),
Tables\Columns\TextColumn::make('price')->label(__('custom.product_name'))->label(__('custom.product_price'))->currency('try'),
Tables\Columns\TextColumn::make('sale_type')->label(__('custom.product_name'))->label(__('custom.product_sale_type')),
])
->filters([
//
])
->actions([
Action::make('create_basket')
->url('/admin/company-creates/sort')
->label('Add Basket'),
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server