qcod / laravel-gamify

Gamify your Laravel app with Reputation Points & Achievements Badges support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Badges *MUST* be directly inside the Gamify/Badges directory

abetwothree opened this issue · comments

This is not a complaint but can be a suggestion.

I spent around an hour and half wondering why badges wouldn't work until I looked at the code in the service provider and realized that badges MUST be directly inside the Gamify/Badges directory. They cannot be inside folders within this directory.

So my suggestion is that this could be in the docs for anyone else running into this or the code can be changed a little bit to be able to dig into any folder structure within the Gamify/Badges directory.

Adding the folder structure search would be especially helpful for any larger app that has lots of badges and would like to organize them in folders within the Gamify/Badges directory.

Thank you for taking the time to read this!

@skatetdieu that's a great suggestion. I would love a PR to support nested folders if you can.

Hi @saqueib, I have made a pull request with the code that would find badges recursively. #24

Hello, just wondering if there's any updated on this recursive looking for badges. Thanks!