Skip to content

An Introduction to Model Relationships in Laravel.

Photo of Dan Trenz
Hosted By
Dan T.
An Introduction to Model Relationships in Laravel.

Details

We're back from a long break so, let's get into some tasty new topics!

We'll jump a bit further into the deep end w/ Laravel.

Dan Trenz will be giving an introduction to Eloquent model relationships in Laravel.

By defining relationships between your models, complex queries for fetching/creating/updating related items for a given model become trivial.

For example, fetching a blog post, as well as the author of the post, and all of the comments attached to the post could potentially be reduced down to a single line of code.

We'll cover basic relationships, such as;

• One to One

• One to Many

• Many to Many

We'll also cover more complex relationships, introduced in the last month w/ the release of Laravel 4.1, such as;

• Has Many Through

• Polymorphic Relations

Sorry for the late notice, but we hope you will be able to join us to discuss these bleeding edge PHP topics.

Note: We are assuming that the audience for this topic is familiar with MVC frameworks. We will also be using database migrations & seeders to set-up our app for the live-coding demo, but we will NOT be covering their use in detail for this talk.

Photo of Ann Arbor PHP group
Ann Arbor PHP
See more events
Washtenaw Community College, Business Education Building, Room BE 250
4800 E Huron River Dr, Ann Arbor, MI · Ann Arbor, MI