nova-callbacks icon indicating copy to clipboard operation
nova-callbacks copied to clipboard

Issue with headings

Open Brand3000 opened this issue 2 years ago • 2 comments

Hi! If there's a Heading::make field in a resource, it becomes required while using nova-callbacks package. Actually, I modified (new static($model))->updateFieldsWithoutReadonly($request) to (new static($model)) ->updateFields($request) ->applyDependsOn($request) ->withoutReadonly($request) ->withoutUnfillable()

and analogically in the fill method.

Brand3000 avatar Sep 26 '22 12:09 Brand3000

Hi! is this package still relevant with Nova 4? I saw there are callbacks similar to what this package provides

ganyicz avatar Sep 30 '22 08:09 ganyicz

Hi! is this package still relevant with Nova 4? I saw there are callbacks similar to what this package provides I believe you are referring to Action Callbacks. The problem with Action callbacks is you have to define a specific action that you then click from a menu and it fires your callbacks.

I want to be able to handle callbacks just from using the application by updates and saves, etc... For instance, whenever a role is attached to a user, send them an email. I don't want to have to create an action for each role when I can just check to see if the role is attached on save and then dispatch my event. Otherwise I'd have 100's of actions for each role and what I want to fire against it.

Based on this, is your package still relevant?

r0bdiabl0 avatar Mar 06 '24 23:03 r0bdiabl0