Appendix A. An Arsenal of Tools

Laravel comes with several utilities that help you perform specific tasks, such as sending e-mails, queuing functions, and manipulating files. It ships with a ton of handy utilities that it uses internally; the good news is that you can also use them in your applications. This chapter will present the most useful utilities so you do not end up rewriting a function that already exists in the framework!

The structure of this chapter is partly based on Jesse O'Brien's cheat sheet, which is accessible at http://cheats.jesse-obrien.ca/. The examples are based on Laravel's tests as well as its official documentation and API.

Array helpers

Arrays are the bread and butter of any web application that deals with data. PHP already ...

Get Laravel 5 Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.