Laravel Companion: Second Edition

Laravel Companion: Second Edition is your go-to reference guide for mastering Laravel's rich set of helper functions, APIs, and utilities. Whether you're a beginner learning the ropes or an experienced developer looking to deepen your understanding, this book offers concise, example-driven explanations of core Laravel features like strings, arrays, collections, translations, configuration, and more. With clear organization and practical code samples, it's designed to help you write cleaner, more efficient Laravel code and unlock the full power of the framework.

Laravel Companion: Second Edition

Laravel Companion: Second Edition is the practical, example-rich reference guide designed for developers who want to work smarter with Laravel. Whether you're just getting started or looking to level up, this book gives you a fast and accessible way to explore Laravel's built-in tools, helper functions, and expressive APIs. Organized by topic and written with real-world use in mind, each chapter is designed to be scanned and applied immediately.

Inside, you'll discover how to make the most of Laravel's elegant features, including string manipulation, array helpers, collection methods, error handling, translations, dynamic macros, and more. This isn't a theory-heavy tome; it's a hands-on companion designed to sit by your keyboard and help you complete your next Laravel project more efficiently and effectively.

You'll learn how to:

  • Use over 20 string helper functions to clean and format text effortlessly
  • Simplify data access with array and collection utilities
  • Work with localization, translation files, and pluralization syntax
  • Customize framework behavior using macros and the Macroable trait
  • Manage configuration, session data, redirects, and more with expressive helpers

Whether you're building APIs, dashboards, or full-stack apps, Laravel Companion helps you write elegant, expressive code that aligns with the Laravel philosophy.

Details

Page Count
681
Publish Date
2018-02-15

eBook

Purchase Price
$19.99
Purchase Link
https://leanpub.com/laravelcompa...

Print Copy

Purchase Price
$55
Purchase Link
https://www.lulu.com/shop/johnat...

Table of Contents

1. String Helper Functions

2. String Translation: The File Loader

3. The FileLoader Public API

4. String Translation: The Translator Public API

5. String Translation: Pluralization Syntax

6. Array Helper Functions

7. Application and User Flow Helper Functions

8. Configuration, Environment, Security and Logging Helper Functions

9. URL Generation Helper Functions

10. Miscellaneous Helper Functions

11. Collection Basics

12. Collections: The Public API

13. Collections: The Static API

14. Message Bags

15. The MessageBag Public API

16. View Error Bags

17. The ViewErrorBag Public API

18. Dynamic Data Containers and the Fluent Data Type

19. Fluent Public API

20. Augmenting Framework Behavior with Macros

21. Macroable Public API

22. Facades

Appendix A: Available Hash Functions

Appendix B: HTTP Status Codes

Appendix C: Language Specific Replacements