Newest content
-
· 10 mins, 1828 words
Your First App in Flutter: Default One VS Understandable One
-
· 1 min, 163 words
FREE E-book: 100 Laravel Quick Tips (and counting)
-
Random Quick Laravel Tip:
Higher order collection messageCollections also provide support for "higher order messages", which are short-cuts for performing common actions on collections. This example calculates the price per group of products on an offer.
1$offer = [2 'name' => 'offer1',3 'lines' => [4 ['group' => 1, 'price' => 10],5 ['group' => 1, 'price' => 20],6 ['group' => 2, 'price' => 30],7 ['group' => 2, 'price' => 40],8 ['group' => 3, 'price' => 50],9 ['group' => 3, 'price' => 60]10 ]11];1213$totalPerGroup = collect($offer['lines'])->groupBy->group->map->sum('price'); -
· Updated Aug 2022 · 4 mins, 735 words
8 Tricks with Laravel Timestamps
-
· 2 mins, 286 words
Taylor Otwell: Laravel 7 Will Move Auth Controllers into UI Package
-
· 3 mins, 504 words
Upload and Parse CSV with Laravel MediaLibrary and SpreadsheetReader
-
Premium Course: Laravel Testing For Beginners: PHPUnit, Pest, TDD
-
· Updated Aug 2022 · 3 mins, 454 words
Eloquent: Recursive hasMany Relationship with Unlimited Subcategories
-
· 4 mins, 607 words
The Biggest Problem with Eloquent Accessors "Magic"
-
· Updated Aug 2022 · 2 mins, 253 words
Get Array of IDs from Eloquent Collection: pluck() or modelKeys()
-
· 2 mins, 352 words
Laravel: Get Newest/Oldest Records from Pivot Table in BelongsToMany
-
· 6 mins, 1134 words
Laravel Two-Step Registration: Optional Fields for Country and Bio