Pasindu
Pasindu
FFilament
Created by Pasindu on 1/7/2024 in #❓┊help
Execute an action after the default action
Hi guys, I have a TextInputColumn code like below, I want to execute a query is_completed to true after executing the default query which is updating the description column. How can I do this? TIA!
TextInputColumn::make('description')
->rules(['min:10', 'max:255'])
->action(fn(FollowUp $record, string $value) => $record->update([
'is_completed' => true,
])),
TextInputColumn::make('description')
->rules(['min:10', 'max:255'])
->action(fn(FollowUp $record, string $value) => $record->update([
'is_completed' => true,
])),
I tried the above code but id didn't work.
5 replies
FFilament
Created by Pasindu on 1/3/2024 in #❓┊help
Load different data based on the role
Hi guys, My project has 2 roles, "admin" and "contractor". There is a ClientCaseResource and If the logged in user is an admin, I want to list down all the client cases in the table. If the logged in uses is a contractor, I want to list down the client cases which are assigned only to that user. How to achieve this in Filament? TIA!
7 replies