Laravel GroupBy: 3 Practical Examples

Поделиться
HTML-код
  • Опубликовано: 1 июл 2024
  • Presenting a new course!
    laraveldaily.com/course/larav...
    - - - - -
    Support the channel by checking out my products:
    - My Laravel courses: laraveldaily.com/courses
    - Laravel QuickAdminPanel: quickadminpanel.com
    - Livewire Kit Components: livewirekit.com
    - - - - -
    Other places to follow:
    - My weekly Laravel newsletter: us11.campaign-archive.com/hom...
    - My personal Twitter: / povilaskorop
  • ХоббиХобби

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

  • @jp9793
    @jp9793 10 месяцев назад +1

    i watched all of your videos and it helped me a lot.❤

  • @g.o.3262
    @g.o.3262 10 месяцев назад +2

    If you use PostgreSQL and need grouping inside the joined subqueries, then almost always that grouping could be replaced with lateral joining. That approach gives huge performance gains. The only downside is that Laravel doesn't have methods joinLateral() and leftJoinLateral(), but they can be easily added by macros.

  • @narendrasharma1614
    @narendrasharma1614 10 месяцев назад

    Superb love from India 🎉

  • @kistnj
    @kistnj 9 месяцев назад

    I would love you see John Lennox on joe Rogan

  • @free2idol1
    @free2idol1 9 месяцев назад

    2:51 I don't understand the practicability of this query? Why did you only need `user_id` of Order Table?

  • @pkbissyer7751
    @pkbissyer7751 9 месяцев назад

    One tough question sir ,
    suppose you create 10 post in blog project & you see only 10 post on dashboard which is create by you .
    you only perform edit,delete,create a post .
    my tough part is iam admin create a user by dashboard according to role and role is author .
    author is different email,different password or different dashboard .
    in this dashboard author only see your 10 post not see other user post only see your post .howwwww??? sir these functionality achieve
    author only edit ,status active deactive your post
    reply me sir or any idea how to achieve this please 🙏
    Dynamically create user or provide a different different user post on different different dashboard

    • @LaravelDaily
      @LaravelDaily  9 месяцев назад

      I don't fully understand youe question because your English sentences are not ideal, sorry. But maybe this tutorial may help you: laraveldaily.com/post/simple-laravel-multi-tenancy-with-single-trait

  • @jhalmu
    @jhalmu 10 месяцев назад

    i'm searching laravel using graph database tutorial... if somebody has seen, thanks.

  • @kirayamato6128
    @kirayamato6128 10 месяцев назад

    order can have many products and vice versa. so why create a table that will be a many to many? I don't understand

    • @LaravelDaily
      @LaravelDaily  9 месяцев назад

      That's the definition of MANY to MANY

    • @kirayamato6128
      @kirayamato6128 9 месяцев назад

      i have a inventory management system and i implement one to many or many to one relationship for order and product. so its not correctly? also the system already used for almost 3 yrs now.

  • @Mr.Error__
    @Mr.Error__ 9 месяцев назад

    I want membership, can I get discount?

    • @LaravelDaily
      @LaravelDaily  9 месяцев назад

      Yes discount is in this video, the last day today: ruclips.net/video/sD8jY4h_tF4/видео.html

    • @Mr.Error__
      @Mr.Error__ 9 месяцев назад

      ​@@LaravelDaily
      I am from Egypt and noticed that the price has not changed for a few days Is there a permanent discount for some countries, including Egypt, and will this offer add more discount to these countries?

    • @danwah
      @danwah 9 месяцев назад +1

      You need to add the discount code from the video he linked, when you get to the checkout my friend