Skip to content
Discussion options

You must be logged in to vote
Text::make('Title')
                ->rules('required')
                ->dependsOn(['user', 'status', 'created_at'],
                    function (Text $field, NovaRequest $request, FormData $formData) {
                        ray(get_class($this).": User changed to ".var_export($formData->user, true));
                        ray(get_class($this).": Status changed to ".var_export($formData->status, true));
                        ray(get_class($this).": Created at changed to ".var_export($formData->created_at, true));
                    }
                ),

Replies: 2 comments 5 replies

Comment options

crynobone
Sep 2, 2022
Maintainer Author

You must be logged in to vote
3 replies
@kusab85
Comment options

@crynobone
Comment options

crynobone Sep 2, 2022
Maintainer Author

@kusab85
Comment options

Comment options

crynobone
Sep 2, 2022
Maintainer Author

You must be logged in to vote
2 replies
@kusab85
Comment options

@ProjectesFUAB
Comment options

Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4773 on September 02, 2022 01:34.