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

Not working for Nova Action field #15

Open
mukulsmu opened this issue Jul 3, 2020 · 0 comments
Open

Not working for Nova Action field #15

mukulsmu opened this issue Jul 3, 2020 · 0 comments

Comments

@mukulsmu
Copy link

mukulsmu commented Jul 3, 2020

Thank you for this great package!

I am unable to get this package working with a project using Laravel 7. I have used this package in a different project that is on Laravel 6 and Nova 2.7 where the same code works fine.

This is how using the package in a Nova Action:

Text::make('Email')->rules('required', 'email')->default('[email protected]'),

Laravel version: v7.15
Nova version: v3.6.0
Package version: v1.2

I also tried using a callback and using dd() to inspect the request but I don't think the default() function is being called.

Text::make('Email')->rules('required', 'email')->default(function (NovaRequest $request) { dd($request->resourceId); }),

Can you please check? Let me know if you need any more information to replicate the issue.

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

No branches or pull requests

1 participant