Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Naming with hyphens? #20

Closed
christianmagill opened this issue May 15, 2017 · 3 comments
Closed

Naming with hyphens? #20

christianmagill opened this issue May 15, 2017 · 3 comments

Comments

@christianmagill
Copy link

I see the naming strategy has been changed.

How do you name controllers whose templates include hyphens? For example template-faq.blade.php

Thanks

@christianmagill
Copy link
Author

Additionally what does the class name become? Thanks

@darrenjacoby
Copy link
Member

Hi @christianmagill,

You can use the original naming or the new naming.

The filename and classname for the example you gave would be TemplateFaq.php and classname TemplateFaq

Essentially it works with camel case now as well.

@christianmagill
Copy link
Author

I'm having trouble getting camel case to work in a project. Using latest Sage.

template-products.blade.php
TemplateProducts.php
class TemplateProducts

body-classes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants