If the value entered in TextInputColumn is more than the stock, can I update the value of this colum

Tables\Columns\TextInputColumn::make('price') ->afterStateUpdated(function ($set, $state, $context) {

// Price güncelleniyor
$set('price', 5);
}),
Tables\Columns\TextInputColumn::make('price') ->afterStateUpdated(function ($set, $state, $context) {

// Price güncelleniyor
$set('price', 5);
}),
In short, I want the column to be updated to the value I set.
1 Reply
Dennis Koch
Dennis Koch13mo ago
It should update with the value you return from updateStateUsing()
Want results from more Discord servers?
Add your server