Laravel Crash Course - Eloquent relationship

Поделиться
HTML-код
  • Опубликовано: 26 мар 2021
  • In the previous lesson we've learned the basic of Eloquent which is a simple ActiveRecord implementation for working with our database.
    In this lesson we're going to learn how link one model to another one. when you working with database relational you might used join table such as left join, right join or inner join to link one table to another one.
    Although we can perform join operations in Laravel, but Eloquent provide a better approach to do that stuff by defining relationship between two models.
    Eloquent provides many different type of relationship that you can apply to your models such as one to one, one to many, Many to Many, etc.
    In this video we're going to see how to use a basic relationship which is one to many relationship.

Комментарии •