how to ad custom data to filament import action #15647
Answered
by
afariasfermin
Ardhan2121
asked this question in
Help
-
PackagePanel builder Package Version3.2 How can we help you?how can i add custom data to filament action importer
|
Beta Was this translation helpful? Give feedback.
Answered by
afariasfermin
Mar 1, 2025
Replies: 1 comment 1 reply
-
Maybe this can work for you using the lifecycle hook protected function afterSave(): void
{
if ($this->record->exists) {
$this->record->user_id = Auth::id();
$this->saveRecord();
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Ardhan2121
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe this can work for you using the lifecycle hook