Search
Toggle Dark Mode
  • Blog
  • Projects
  • Books
Ctrl K
  • Blog
  • Projects
  • Books
  • Toggle Dark Mode
Published in Laravel 5

Laravel 5 Collections: The Static API

By John Koster April 22, 2018
Share on X
Share link
Join the Discussion

The Collection class provides a handful of static helper functions that help in the creation of new collection instances.

#Collections: The Static API

  • Laravel 5 Collections Static API: Creating a New Collection Instance From Arrays Using make
  • Laravel 5 Collections Static API: Ensure a Value Is a Collection With wrap
  • Laravel 5 Collections Static API: Returning the Items of a Collection With unwrap
  • Laravel 5 Collections Static API: Creating a Collection By Invoking a Callback a Given Number of Times With times
  • Laravel 5 Collections Static API: Adding Methods to the Higher Order Message List With proxy

∎

Latest posts

That Escalated Quickly: All the New Things

The past six months or so have been incredibly busy. What started as a new article series about cust...

Read more
Troubleshooting a Statamic Illegal Offset Type Error when Viewing Collection Entries in the Control Panel

In this post I talk about how I resolved a mysterious illegal offset type error when viewing collect...

Read more

Up Next

Laravel 5 Collections: Transforming Collection Element Keys With keyBy

The keyBy method in Laravel is used to create a new collection instance where the keys of the new key/value pairs are de...

Read more

Laravel 5 Collections: Transforming Collection Elements With map

The map method in Laravel's Collection class allows you to apply a callback function to each item in the collection and...

Read more

Laravel 5 Facades

Facades in Laravel provide a simplified interface to access components. They act as proxies to underlying subsystems and...

Read more

Laravel 5 Fluent API: Dynamic Data Containers and the Fluent Data Type

Learn how to use the Illuminate\Support\Fluent class to easily work with data in PHP. The Fluent class allows you to acc...

Read more
Company
  • About
  • Privacy Policy
  • Terms of Use
Open Source
  • Blade Parser
  • Dagger
  • Torchlight
  • Antlers Toolbox
Popular Resources
  • Advanced PHP Strings
  • Antlers: Building Beautiful Websites with Statamic
  • A Beginners Guide to Antlers Arrays and Loops
Connect
  • Contact
  • GitHub
  • X

© 2025 Stillat.com, LLC. All rights reserved.

X (Twitter) Mastodon GitHub GitHub RSS/Atom Feed