From 38e33f20b3667231a7be76e1ea86f34efcb383c8 Mon Sep 17 00:00:00 2001 From: "/\\ngel" <25136754+serious-angel@users.noreply.github.com> Date: Wed, 16 Apr 2025 14:08:44 +0200 Subject: [PATCH] Update README.md Added "Blade variable" name convention item. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5f456a9..5b7afd4 100644 --- a/README.md +++ b/README.md @@ -573,6 +573,7 @@ Method | camelCase | getAll | ~~get_all~~ Method in resource controller | [table](https://laravel.com/docs/master/controllers#resource-controllers) | store | ~~saveArticle~~ Method in test class | camelCase | testGuestCannotSeeArticle | ~~test_guest_cannot_see_article~~ Variable | camelCase | $articlesWithAuthor | ~~$articles_with_author~~ +Blade Variable | camelCase | articlesWithTitle | ~~$articles_with_title~~ 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~~