FREELessons: 12Length: 2.1 hours


Next lesson playing in 5 seconds
CancelConnect to a Database With Laravel's Eloquent ORM
Introduction
01:29
Just about every application we write uses a database to store our data. If you're a Laravel developer, then chances are very good that you will use Eloquent to interact with your database. 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 set up, easy to use, and packs a lot of power.
In this course, Envato Tuts+ instructor Jeremy McPeak will teach you how to use Eloquent, Laravel's object-relational mapper (ORM). Follow along as Jeremy builds the data back-end for a simple guitar database app. You'll learn how to create data tables with migrations, how to create data models, and how to use Eloquent for querying and mutating data.
1.Introduction1 lesson, 01:29
1 lesson, 01:29
1.1Introduction01:29
1.1
Introduction
01:29
2.The Basics3 lessons, 40:56
3 lessons, 40:56
2.1Project Setup and Migrations15:29
2.1
Project Setup and Migrations
15:29
2.2Seeding13:05
2.2
Seeding
13:05
2.3Creating Models and Factories12:22
2.3
Creating Models and Factories
12:22
3.Using Eloquent5 lessons, 53:38
5 lessons, 53:38
3.1Using Tinker07:40
3.1
Using Tinker
07:40
3.2Query Scopes07:48
3.2
Query Scopes
07:48
3.3Performing Queries14:07
3.3
Performing Queries
14:07
3.4Accessors and Mutators09:29
3.4
Accessors and Mutators
09:29
3.5CUD: Create, Update, and Delete14:34
3.5
CUD: Create, Update, and Delete
14:34
4.Relationships2 lessons, 26:36
2 lessons, 26:36
4.1Setting Up Relationships15:05
4.1
Setting Up Relationships
15:05
4.2Querying With Relationships11:31
4.2
Querying With Relationships
11:31
5.Conclusion1 lesson, 00:59
1 lesson, 00:59
5.1Conclusion00:59
5.1
Conclusion
00:59
I started my development career on the client-side writing JavaScript and DHTML components in my spare time. In 2005, Nicholas C. Zakas asked me to join him in writing the first edition of Professional Ajax for Wiley Publishing. Since Professional Ajax, 1st Edition, I've been blessed to take part in other book projects: Professional Ajax 2nd Edition, and Beginning JavaScript 3rd and 4th editions.