Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement #9 issue, add support for Nova Event bus, trigger 'change' event #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scramatte
Copy link

Hello,

This PR add support for Nova Event bus and trigger 'change' event as explained #9 issue

Regards

Copy link
Owner

@JacobFitzp JacobFitzp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well, just noticed one regression

@@ -27,7 +27,7 @@ class NovaExtension {
...(webpackConfig.resolve.alias || {}),
'laravel-nova': path.join(
__dirname,
'vendor/laravel/nova/resources/js/mixins/packages.js'
'../../vendor/laravel/nova/resources/js/mixins/packages.js'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'../../vendor/laravel/nova/resources/js/mixins/packages.js'
'vendor/laravel/nova/resources/js/mixins/packages.js'

This reverts another change that was made

The path was updated from '../../vendor' to ensure the package functions correctly as a standalone package. This change aligns with the Laravel Nova documentation on mixins (part 2), which states that standalone packages should not depend on the main project structure.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Unfortunatly, I've got the issue with all my packages, and I don't know how to resolve it ... I work in nova-components directory but when I try to build package it never found laravel-nova alias so I must change the path.

If you give me a hand with this, I fix it quickly
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component should emit Nova.$emit('${attribute}-change' ...) bus event
2 participants