12 Must Know Collection Methods In Laravel | How to Use Collections in Laravel

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • This video will show you 12 must know collection methods in Laravel. Laravel collection works in the same way as a PHP array, but it’s a lot more powerful. A collection allows you to create a chain of methods to map or reduce arrays.
    Resources
    - GitHub: github.com/codewithdary/larav...
    - Gear: kit.co/codewithdary
    - Patreon: www.patreon.com/user?u=30307830
    - Instagram: / codewithdary
    - Twitter: / codewithdary
    Get up to 1 Month Free Hosting by using code "DARY15" and get $15 free hosting credit.
    www.cloudways.com/en/?id=918573
    Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr.
    Coding Gear
    - MacBook Pro: amzn.to/3qTMnGi
    - Dell XPS: amzn.to/3Atp7Cm
    - LG 34WN650-W: amzn.to/3G0XMbS
    - Magic Trackpad 2: amzn.to/3Arp2ir
    - Magic Mouse 2: amzn.to/346k5zC
    - NAS: amzn.to/3rFf60U
    - Sandisk SSD: amzn.to/3fNHcBB
    - Rain Design Stand: amzn.to/3GTMeZ5
    Recording Gear
    - Rode NT-USB [Start]: amzn.to/3ApApXY
    - Shure SM7B [Advanced]: amzn.to/3Arj5lv
    - Rode PSA1: amzn.to/32pMCQ5
    - Focusrite Scarlett 2i2: amzn.to/3FYZD0t
    - XLR to XLR: amzn.to/3qVm2rC
    Timestamps
    Custom Artisan Commands
    00:00 Introduction, Creating a custom artisan command
    02:59 Sponsor of today’s video
    03:34 Introduction, Creating a custom artisan command
    05:31 all()
    06:13 avg()
    07:01 chunk()
    08:00 combine()
    09:01 contains()
    11:28 count()
    11:52 diff()
    12:58 dd()
    13:37 flip()
    14:33 forget()
    15:03 Setting up our database & seeder
    17:56 each()
    20:33 map()
    21:45 filter()
    23:22 pluck()
    24:09 isEmpty() & isNotEmpty()
    24:45 Example: Chaining multiple methods together
    ▬▬▬
    #cloudhosting #managedhosting #cloudways #laravel

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

  • @codewithdary
    @codewithdary  2 года назад +2

    LETS CONNECT THROUGH INSTAGRAM.
    instagram.com/codewithdary

  • @baaiiimmmm
    @baaiiimmmm 4 месяца назад

    Thank you man, this helped me

  • @davidrowlands8548
    @davidrowlands8548 3 года назад +1

    Yet another great video

  • @itwebadmin
    @itwebadmin 3 года назад

    I like the Github idea, based on the problems that people (including myself) had from the Laravel course

    • @codewithdary
      @codewithdary  3 года назад

      Thanks! Might be updating readme’s as well based on new updates/features!

  • @digitaluniverse9826
    @digitaluniverse9826 3 года назад +2

    Hi dary. Just a suggestion. Could you please create a series on livewire with laravel 8?

  • @webcodingoprogrammingtips2090
    @webcodingoprogrammingtips2090 3 года назад +3

    Sorry, there are no generics in PHP like in C# or Typescript. Otherwise, Laravel collections would generic and would be very powerful.
    Anyway, they are pretty useful and solve problems in a functional style.

  • @shailu016hai6
    @shailu016hai6 3 года назад +1

    ❤️❤️❤️

  • @davidson7838
    @davidson7838 2 года назад

    Hi Dary, like someone else also requested here, can you make a livewire series plese?

    • @codewithdary
      @codewithdary  2 года назад +1

      Will definitely be coming soon!

  • @SHADAN.__.KHAN077
    @SHADAN.__.KHAN077 2 года назад

    👍

  • @usamaali1543
    @usamaali1543 3 года назад

    Plz create complete project in laravel which can help how anyone can create alone project or anyother application.