Learning Laravel’s Eloquent Front Cover

Learning Laravel’s Eloquent

  • Length: 148 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2015-09-01
  • ISBN-10: 1784391581
  • ISBN-13: 9781784391584
  • Sales Rank: #1079126 (See Top 100 Books)
Description

Develop amazing data-based applications with Eloquent, the Laravel framework ORM

About This Book

  • Build highly efficient applications with the Eloquent ORM using an expressive syntax
  • Get to grips with the power of relationships and how Eloquent handles them
  • Go beyond simple theory with various step-by-step code examples

Who This Book Is For

This book is perfect for developers with some basic knowledge of PHP development, but are new to the Eloquent ORM. However, developers with previous Laravel and Eloquent experience will also benefit from the in-depth analysis of specific classes and methodologies in the book.

What You Will Learn

  • Configure a new Laravel project and set up database connections in minutes
  • Build and work with models to handle your data with an expressive syntax
  • Define relations between your models to create complex functionalities
  • Query your database using relations simply
  • Use collections to gather results and perform many operations on them with a powerful data structure
  • Use the Eloquent ORM without Laravel
  • Control your models during the request lifecycle with event listeners and observers

In Detail

Learning Laravel’s Eloquent starts off by taking you through setting up your first project and guiding you in creating a perfect Laravel environment. You will learn how to build the right database structure with the Migrations system and the Schema Builder class. Next, you will be introduced to the main element of Eloquent: the model. After treating the model as a single, isolated entity, you will learn how to create relations between them. You will be taken through organizing, filtering, and sorting your data with collections. You will then learn to enhance an application with new features using events and by creating new observers. Towards the end of the book, you will discover how to install, configure, and use the Eloquent ORM without Laravel. The book concludes by walking you through how to deal with complex problems and build advanced and flexible systems.

Table of Contents

Chapter 1: Setting Up Our First Project
Chapter 2: Building the Database with the Schema Builder Class
Chapter 3: The Most Important Element – the Model!
Chapter 4: Exploring the World of Relationships
Chapter 5: Using Collections to Enhance Results
Chapter 6: Everything under Control with Events and Observers
Chapter 7: Eloquent… without Laravel!
Chapter 8: It’s Not Enough! Extending Eloquent, Advanced Concepts

To access the link, solve the captcha.