Develop amazing data-based applications with Eloquent, the Laravel framework ORM
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.
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
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.