Explain Page::getTemplateName()
Closed this issue · 1 comments
unstoppablecarl commented
https://github.com/Laravel-Backpack/PageManager/blob/master/src/app/Models/Page.php#L53
What is this doing exactly?
tabacitu commented
It turns the template name from snake_case to camelCase, because:
- blade templates are stored as snake_case;
- template methods names are all camelCase;
Hope it helps.
Cheers!