F
Filament14mo ago
tako

AfterStateUpdated() is there a way to add more Set in order to make it multiple

No description
1 Reply
Vp
Vp14mo ago
Can you explain more or do you mean like this
->afterStateUpdated(function (Closure $set, $state) {
$set('slug', Str::slug($state)); // for TextInput('slug')
$set('a', Str::slug($state)); // for TextInput('a')
$set('b', Str::slug($state)); // for TextInput('b')
$set('c', Str::slug($state)); // for TextInput('c')
})
->afterStateUpdated(function (Closure $set, $state) {
$set('slug', Str::slug($state)); // for TextInput('slug')
$set('a', Str::slug($state)); // for TextInput('a')
$set('b', Str::slug($state)); // for TextInput('b')
$set('c', Str::slug($state)); // for TextInput('c')
})
Want results from more Discord servers?
Add your server