Undefined array key "" when generating user (or any) crud #500
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hi @alancwoo , i think the error is in the route file, if I'm not wrong, try to add this to your route
or if you want the easy way, I create a starter pack for backpackforlaravel providing user, role, and permission, check this out. let me know if you find any issues, thx mate |
Beta Was this translation helpful? Give feedback.
-
Hey @alancwoo thanks for the report. What version of generators are you running ? You can get backpack package versions with Did you manually modify the route file or something similar ? Let me know how it goes. Cheers |
Beta Was this translation helpful? Give feedback.
-
I'm closing this issue due to inactivity. If you need further assistance or have additional questions, feel free to reopen this issue or create a new one. We're here to help! |
Beta Was this translation helpful? Give feedback.
Thanks for the reply.
Can you confirm that your
routes/backpack/custom.php
ends with:'}); // this should be the absolute last line of this file'
or});
?Can you also confirm that maybe when the file was saved, some IDEs automatically add an empty line at the end of the file. That can also cause that script to fail.
Let me know.