-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix blade file name convention #24
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this have to merged.
README.md
Outdated
@@ -470,7 +470,7 @@ Variable | camelCase | $articlesWithAuthor | ~~$articles_with_author~~ | |||
Collection | descriptive, plural | $activeUsers = User::active()->get() | ~~$active, $data~~ | |||
Object | descriptive, singular | $activeUser = User::active()->first() | ~~$users, $obj~~ | |||
Config and language files index | snake_case | articles_enabled | ~~ArticlesEnabled; articles-enabled~~ | |||
View | snake_case | show_filtered.blade.php | ~~showFiltered.blade.php, show-filtered.blade.php~~ | |||
View | kebab_case | show-filtered.blade.php | ~~showFiltered.blade.php, show_filtered.blade.php~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be kebab-case
instead of kebab_case
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed
Hi guys. I've seen these variations in Laravel projects I'll add a vote. Please use the thumbs up reaction to vote. |
viewName.blade.php |
view-name.blade.php |
view_name.blade.php |
2ea7884
to
5706262
Compare
Changed to kebab-case according to the vote results. |
I think it's better to follow the framework naming convention. In this package they are using kebab-case instead of snake_case for blade files.
https://github.com/illuminate/pagination/tree/master/resources/views