Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:12Length:2.1 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

1.1 Introduction

Hi, I'm Jeremy McPeak, and I invite you to spend some time with me learning about Eloquent, the built-in ORM for Laravel applications. In this lesson, I'll introduce Eloquent and show you what we'll be building in the course.

1.1 Introduction

Just about every application we write uses a database to store our data. And if you are a Laravel developer, well, then chances are very good that you will use Eloquent to interact with your database. Hi, I'm Jeremy McPeak, and I invite you to spend the next two hours with me to journey through the world of Eloquent. The built in ORM of Laravel applications. Now, ORM stands for object relational mapping, and it essentially simplifies the way that we interact with relational databases, like MySQL. We'll start by creating our tables, but not by using SQL mumbo jumbo, but by generating migrations and designing our tables using ordinary PHP code. But of course, an empty database is pretty much useless. So we'll seed our tables with some data that we can work with. From there we'll create our eloquent models. Now a model is just a programmatic representation of a database table, and they are the primary way that we interact with the database. I'll then introduce you to Tinker, a very helpful little utility that lets us tinker with our models from the command line. We'll then dive into more advanced stuff like scopes, accessors, mutators, and more advanced queries. We'll finish the course talking about relationships, how to set them up and use them within your applications. Now we have a lot of ground to cover, so when you're ready, queue up the next video and we will get started

Back to the top