I was followed step by step your tutorial, writing the code by myself (i mean, without clone your github project) and without this line (thanks @cleathley
) an error appears.
I think you should edit your post and add that line after you explain this:
«Add a global respondWithToken method to Controller class»
you might want to also add
when you add
respondWithToken
toapp/Http/Controllers/Controller.php
(Lumin 6+)This saved my life ty
This is key.
I was followed step by step your tutorial, writing the code by myself (i mean, without clone your github project) and without this line (thanks @cleathley ) an error appears.
I think you should edit your post and add that line after you explain this:
«Add a global respondWithToken method to Controller class»
Anyway, great tutorial. It help me a lot!!
I'm glad it helped 👍
I will update the post, so new readers don't run into this same error.
Thanks For this, I will update the tutorial to help people not encounter this error in the future.