Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demos and Folder Naming Syntax #5

Closed
markalanevans opened this issue Oct 3, 2013 · 5 comments
Closed

Demos and Folder Naming Syntax #5

markalanevans opened this issue Oct 3, 2013 · 5 comments

Comments

@markalanevans
Copy link

I noticed that in many of your demos, your creating folders Pascal Casing

MyNewClass

where as everything else in laravel is all lowercase

Do you have suggestions thoughts on this?

@JeffreyWay
Copy link
Owner

Not sure what you mean. Laravel core class names are pascal case, too.

@markalanevans
Copy link
Author

https://laracasts.com/lessons/where-do-i-put-this 2:59 marker.

All of your directories are Pascal cased rather than lowercased.

Probably a good talk would be "The Larval Way" by Jeffrey Way ;)

Where you talk about:
class / directory / file / method / variable

naming conventions

location php__html

Perhaps i should make that a "Request"?

@markalanevans
Copy link
Author

Right, so whats the Logic for when it should be Pascal vs lowercased?

@JeffreyWay
Copy link
Owner

Oh, that's because those are vendor packages, installed through Composer. If you look at Laravel's core classes (like within the Auth folder you pointed to), they'll all be PascalCase.

@markalanevans
Copy link
Author

Ok. Cool. So basically lowercase for generic directories. Pascal for Package Directories.

Thank Jeffrey.

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

No branches or pull requests

2 participants