![]() A user can only have one passport, and a passport only belongs to one user. For example, a relationship between a User model and a Passport model would be a one to one relationship. This type of relationship means that a model of type A may only be linked to one model of type B, and vice versa. The one to one relationship is basic in laravel. There are 3 types of relationships in laravel: Eloquent trong laravel s giúp chúng ta qun lý và làm vic vi các quan h gia các tables vi nhau mt cách d dàng.
0 Comments
Leave a Reply. |