30 Days to Learn Laravel, Ep 11 - Two Key Eloquent Relationship Types

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 25

  • @couchtourist256
    @couchtourist256 13 днів тому

    Man, laravel is just so dope. Makes developing really fun, and I thought I loved Flutter as a framework.

  • @TrikNgonlen
    @TrikNgonlen 8 місяців тому

    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.

  • @gamires
    @gamires Місяць тому

    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.

  • @diegosk8zero
    @diegosk8zero 8 місяців тому

    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

  • @whisperscribe
    @whisperscribe 7 місяців тому

    Thanks Jeffrey, managed to make some stuff that I tought it was really hard by myself!

  • @MuhammadShoaib-h7r
    @MuhammadShoaib-h7r 6 місяців тому

    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,

  • @SatoKazumaLvl
    @SatoKazumaLvl 8 місяців тому

    thank you sir, youre really an awesome teacher

  • @grugbrain
    @grugbrain 8 місяців тому

    Nice. Please make a series of tutorial to cover all Eloquent relationships. 😘

  • @mandjivatuva
    @mandjivatuva 8 місяців тому

    Perfect explanation. Thanks.

  • @alfonsoleon5392
    @alfonsoleon5392 8 місяців тому

    Great explanation!

  • @imambs521
    @imambs521 8 місяців тому

    Nice and simple 👍

  • @NormanTavish
    @NormanTavish 4 місяці тому

    Hello , I got problem . in my code this employer function retruns null

  • @myprojects2569
    @myprojects2569 4 місяці тому

    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

  • @seddeknadhem5638
    @seddeknadhem5638 5 місяців тому

    Let's go baby

  • @hadi-web
    @hadi-web 6 місяців тому

    @jeffery sir their is one issue is that
    > $employer->job;
    WARNING Undefined variable $employer.
    WARNING Attempt to read property "job" on null.

    • @MuhammadShoaib-h7r
      @MuhammadShoaib-h7r 6 місяців тому

      after implementing the relation, just migrate again and then call the API for $job->employer
      It'll probably solve your issue.

    • @LiteralHatReloaded
      @LiteralHatReloaded 3 місяці тому

      Did you put the previous executed line of code into a variable $employer first ?

  • @sale7680
    @sale7680 4 місяці тому

    Bravo

  • @udayworldwide
    @udayworldwide 27 днів тому

    Only key methods discussed?
    I think, one separate playlist dedicated to eloquent is required

  • @anangyoga1381
    @anangyoga1381 7 місяців тому

    I hasMany thanks for you.

  • @sale7680
    @sale7680 4 місяці тому

    ❤❤

  • @EnimaIffets
    @EnimaIffets 8 місяців тому

    nice

  • @kerimtim
    @kerimtim 6 місяців тому +2

    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?

    • @abdomahmoud8769
      @abdomahmoud8769 6 місяців тому +1

      yea a man hasMany wifes, however a wife belongsTo a man