AWESOME! "This relationship type is great for something, this relationship type is great for something, and this relationship type is great for something". I love this kind of additional explanation. I work for a quarry company, I really need that kind of explanation. I'm learning Laravel, because I want to manage whole of the company data with Laravel. For me, as a newbie, Eloquent Relationship Type topic is the most interesting part in Laravel.
Hi Jeffrey. I am happy, but I know that I will be very happy with Laravel - "The PHP Framework for Web Artisans". As a programmer I feel like an Artisan. Thank you.
In prev. video we've implemented Eloquent Relation b/w User and Employer Model, but here it's basically b/w Job and Employer Model and that's understood by first API call being run that produced the response having data of job but containing empoyer_id as foreign key. So, it'll clear the confusion for those who're facing any issue. Regards,
I was asked from my internship tutor.... What is the definition of belongsTo in laravel... I said that it is used for defining the relationship of one to many.... He said that I am wrong.... then I said that it is used when we are trying to access the parent model via child model..... He again said I am wrong.... Where I am wrong Jeffrey way ? I am kind of confused
Man, laravel is just so dope. Makes developing really fun, and I thought I loved Flutter as a framework.
AWESOME!
"This relationship type is great for something, this relationship type is great for something, and this relationship type is great for something". I love this kind of additional explanation.
I work for a quarry company, I really need that kind of explanation.
I'm learning Laravel, because I want to manage whole of the company data with Laravel.
For me, as a newbie, Eloquent Relationship Type topic is the most interesting part in Laravel.
Hi Jeffrey. I am happy, but I know that I will be very happy with Laravel - "The PHP Framework
for Web Artisans". As a programmer I feel like an Artisan.
Thank you.
The relationship: belongsToMany is so powerfull and the same time easy to use and thats why I love Laravel. Thanks for this serie :D See u next epsode
Thanks Jeffrey, managed to make some stuff that I tought it was really hard by myself!
In prev. video we've implemented Eloquent Relation b/w User and Employer Model,
but here it's basically b/w Job and Employer Model and that's understood by first API call being run that produced the response having data of job but containing empoyer_id as foreign key.
So, it'll clear the confusion for those who're facing any issue.
Regards,
thank you sir, youre really an awesome teacher
Nice. Please make a series of tutorial to cover all Eloquent relationships. 😘
Perfect explanation. Thanks.
Great explanation!
Nice and simple 👍
Hello , I got problem . in my code this employer function retruns null
I was asked from my internship tutor....
What is the definition of belongsTo in laravel... I said that it is used for defining the relationship of one to many.... He said that I am wrong.... then I said that it is used when we are trying to access the parent model via child model..... He again said I am wrong....
Where I am wrong Jeffrey way ? I am kind of confused
Let's go baby
@jeffery sir their is one issue is that
> $employer->job;
WARNING Undefined variable $employer.
WARNING Attempt to read property "job" on null.
after implementing the relation, just migrate again and then call the API for $job->employer
It'll probably solve your issue.
Did you put the previous executed line of code into a variable $employer first ?
Bravo
Only key methods discussed?
I think, one separate playlist dedicated to eloquent is required
I hasMany thanks for you.
❤❤
nice
My example is
A man can have multipe wives, while a wife can only have a one husband?
Is it called one to many relationship?
yea a man hasMany wifes, however a wife belongsTo a man