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

Class voyager does not exist - Adding new Formfield #7

Open
moisesh18 opened this issue Feb 11, 2020 · 1 comment
Open

Class voyager does not exist - Adding new Formfield #7

moisesh18 opened this issue Feb 11, 2020 · 1 comment

Comments

@moisesh18
Copy link

Hi. I wanted to add a new simple Formfield with this repo, following the next official tutorial:
https://voyager-docs.devdojo.com/customization/adding-custom-formfields
And I get this error while editing AppServiceProvider:
image

The code works if in AppServiceProvider I move the register addFormField from the register() to boot().
Also I tried to copy the code from boot() to register() and doesn't work.

In the docs of this repo say that Autodiscover will be disabled for AppServiceProvider. I'm not sure what a Autodiscover is. I'm not sure about if new application services should be registered in Config/app.php.

Thank you!

@gruz
Copy link
Owner

gruz commented Feb 11, 2020

I cannot promise I can have a look. The code is one year old. I don't actively use and problems gather with Voyager/Laravel/Tenancy code updates. I need to dedicate some time to maintain the repo, but I have zero motivation, since I don't use this code.

Please try to fix at your own and add pull requests. If you don't manage, then force me to fix the repo issues instead of playing dozens of hours in Hearts of Iron IV :-)

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

2 participants