-
Notifications
You must be signed in to change notification settings - Fork 12
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
Call to a member function get() on null #7
Comments
Looks like the cal to the Laravel inversion of control container is not finding the service did you add one or both service providers to config/app.php ?
These providers register the services with the container :
so, you can call
As for the token and token_secret, I do not have access to a netsuite account anymore, but as I recall, when you create access tokens, you should get these as well as your consumer_key and consumer_secret upon a quick Google, yes... consumer_key and secret come from an integration request creation... and then you generate tokens for that integration Best of luck, and I have not updated / reviewed this in a while, but I am still using it in production without error - as far as I know... |
Thanks for getting back to me. I found the tokens finally. Now I am getting
When I try to use this with Laravel Tinker. It looks like it something is wrong with the ENV settings. I have of course run Yes I did add the providers to config/app.php |
I have not tried it with Tinker. I will try it and see what I get. |
I discovered that in running from tinker and from phpunit, getenv() returns the environment variables of your local shell. I updated to use Laravel's env() ... but I recall initially having issues with that if the values were in the .env file This may work with the values in .env if not, then you would have to set them in some other way .. ie in phpunit with values or by directly exporting them for Tinker... if that will get them into the Tinker environment and I love GrahamCampbell's comment... which is a very concise embodiment of the reason I went more in the Vue.js / Node direction :-) |
Hello,
I am trying to get your package running as a proof of concept. I am getting the error
Call to a member function get() on null
when I try to make the call from the readmeMy code:
My ENV
I am using a token and secret for a full access user
Are you able to provide any direction as to why I am getting null out of
$myWebService = app('Usulix\NetSuite\NetSuiteService')->getService();
The text was updated successfully, but these errors were encountered: