Instructor: Matthew Machuga
Laravel's Eloquent object-relational mapper (ORM) is one of the most-loved features of the framework. Eloquent makes it easy to connect to relational data in a database and work with it using Object-Oriented models in your Laravel app. It is simple to setup, easy to use, and packs a lot of power.
In this coffee break course, we'll take a look at relationships in Eloquent. You'll learn how to use relations, how they translate into SQL queries, and explain some of the magic that Laravel does behind the scenes.
This repo contains the Laravel app used as an example in the course.
cd example-proj
- Run
composer install
- Run
touch database/example.sqlite
- Run
php artisan migrate
- Run
php artisan db:seed
- Run
php artisan tinker
- Explore and Enjoy!
These are source files for the Envato Tuts+ course: How it Works: Laravel Eloquent ORM
Available on Tuts+. Teaching skills to millions worldwide.