Code Explainers
Code explainers tagged #collections
php
<?php namespace App\Reports;
Bucketing spending by time period in Laravel
aggregation
date-bucketing
collections
Intermediate
9 steps
php
<?php namespace App\Http\Controllers;
Serving cached translations from a Laravel controller
http-caching
etag
localization
Intermediate
8 steps
php
<?php namespace App\Http\Controllers;
Building a paginated XML sitemap in Laravel
pagination
seo
collections
Intermediate
8 steps
php
<?php namespace App\Http\Middleware;
Enforcing upload quotas with Laravel middleware
middleware
quota-enforcement
collections
Intermediate
8 steps
php
<?php namespace App\Mail;
Building a queued digest email in Laravel
mailable
queueing
localization
Intermediate
6 steps
java
@RestController @RequestMapping("/api/products") public class ProductSearchController {
Binding collection query params in Spring
rest-api
query-parameters
dependency-injection
Intermediate
6 steps
php
<?php namespace App\Services;
Computing rolling averages in Laravel
rolling-average
date-ranges
collections
Intermediate
8 steps
php
<?php namespace App\Services;
Managing many-to-many tags in Laravel
many-to-many
pivot-table
collections
Intermediate
9 steps
php
<?php declare(strict_types=1);
An immutable typed collection in PHP
immutability
value-objects
iterators
Intermediate
8 steps
php
<?php namespace App\Http\Requests;
Normalizing input in a Laravel FormRequest
validation
authorization
input-normalization
Intermediate
6 steps
php
<?php namespace App\Notifications;
How a queued weekly digest email works in Laravel
notifications
queues
email
Intermediate
7 steps