Laravel 6 Advanced - e8 - Lazy Collections & PHP Generator

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

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

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

    Great series, I learnt alot.
    Thank you

  • @rideshare4267
    @rideshare4267 5 лет назад +24

    Love these advanced in depth videos. Best on RUclips. You are the man Victor.

  • @johnwink5186
    @johnwink5186 5 лет назад +8

    Hello👋,
    i just wanted to say thanks for this great video series! I'm a German developer and I've been working with Laravel for 2 years (version 5 was my first) and I'm absolutely thrilled. It's nice to see how many possibilities laravel has. I am constantly learning new great things.
    Please continue with these great videos!

    • @CodersTape
      @CodersTape  5 лет назад +2

      Thanks! I’ll keep them coming, if you promise you’ll keep sharing the videos and bringing in more people to the channel

  • @innocentmazando3808
    @innocentmazando3808 5 лет назад +6

    I swear to God this Advanced Laravel playlist is helping me so much. Thanks man for making these tutorials

  • @Vinothvipin
    @Vinothvipin 5 лет назад +4

    Previously i have read the "Generator" concept in node js , that time i get confused , but now i have clear sight of "Generator". Many thanks for your great work.

  • @michabbb
    @michabbb 5 лет назад +2

    I read some stuff about yield and got confused more and more, finally I got it, thanks to your video player 😂 man, you have a great talent to explain strange stuff in a super easy way, love it ❤️👍

    • @CodersTape
      @CodersTape  5 лет назад +1

      There’s a method to the madness. 🎬

  • @jeff9393
    @jeff9393 5 лет назад +2

    pretty nice bro, i would like to see a POO video, Interfaces, abstraction, encapsulation and that sort of things on laravel... god work on this vids as always

  • @abdulkaderalahalby8530
    @abdulkaderalahalby8530 5 лет назад +2

    thanks for the cool series... i just wanted to add something and correct me if i am wrong pls. when using lazy collection you wont' be out of memory. in your case at 3:03 you still getting memory error because you are calling all( ) on lazy collection which will return a normal collection

    • @CodersTape
      @CodersTape  5 лет назад +2

      That’s right. Even though we can fetch millions of data points, if you’re trying to put them in an array, it will still fail. So it all depends on what you’re doing with it.

  • @rafaelcorrea7959
    @rafaelcorrea7959 4 года назад +1

    You are running out of memory because the operation itself is doing it, but the cool thing about generators, is that they discard unused memory, so if instead of increasing the operation, you just put more, you wouldn't reach the memory limit.

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

    Hi!!! good tutorial? how can i use in this case:
    $familias = User::where('tipo_usuario', 2)
    ->where($criterio, 'like', '%'.$buscar.'%')
    ->with(
    'encargados'
    ,'hijos.usuario'
    ,'hijos.sede:id,nombre_colegio'
    ,'hijos.jornada:id,nombre_jornada'
    ,'hijos.grado:id,nombre_grado' )
    ->orderBy('id', 'desc')->paginate($pagination);
    I need to use lazycollection

  • @Mohsen-i5z
    @Mohsen-i5z 3 года назад +1

    I'm really enjoying watching this series. It has really helped me!

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

    Is there any way you can show us some real project example where you use Generators and LazyCollections ?

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

    Victor, Can we use this for asynchronous like javascript?

  • @КонстантинБратищев-з3п

    I love you man) I want to be a programmer!!! will you marry me? or it work's something else?

  • @itslayk4164
    @itslayk4164 5 лет назад +2

    Yay first 😻

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

    Can u please help me on how can I update .env file from controller?

  • @Paltibenlaish
    @Paltibenlaish 4 года назад

    I would like to know real case usage of this methods

  • @СергейГолубев-л5п
    @СергейГолубев-л5п 5 лет назад +1

    Thanks, bro, keep going with this series.!

  • @biliyonnet
    @biliyonnet 5 лет назад +1

    javascript has this feature also.

  •  4 года назад

    totally subscribed!

  • @SarveshChauhan
    @SarveshChauhan 4 года назад

    hey @Coder's Tape Collection & LazyCollection working same both are getting stoped after 10000000 times is I am doing something wrong

  • @mamdouhzaq
    @mamdouhzaq 5 лет назад +1

    You are a life saver, thanks bro

  • @bartomiejsobieszek432
    @bartomiejsobieszek432 5 лет назад

    There is one thing I noticed during this video and I don't know if its dump, web browser, or generator fault itself - during yielding all these hellos the page content become to expand during loading. I don't remember to write a PHP code that would make such behaviour (I believe that by usual the PHP produces full HTML output at once).
    This gives me a yellow ligh that yielding and generators can be bad for XHR requests, unless you can stream them to a JS Stream API, but I suspect it would be buggy.

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 5 лет назад

    Nice one, generators are quite an old feature on php, people think that it is complex and don't use it, but you made it clear ! But, i must say, guys try to avoid doing too much logic in PHP, if your database can do it, just do it there.

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

    bro you're very awesome people. I learned laravel thanks to you. and I'm being advanced level thanks to you too.

  • @ripon59
    @ripon59 Год назад

    mindblowing

  • @NathanBudd
    @NathanBudd 5 лет назад

    This felt more like an "advanced PHP" lesson, rather than an Advanced Laravel lesson.
    A more practical example such as importing lots of records in to a db from a CSV would have been useful.
    I'm still not 100% sure I get when to use this, other than when my foreach runs out of memory.

  • @1mr4n4li
    @1mr4n4li 2 года назад

    where you are gone mate?

  • @irunfx8060
    @irunfx8060 4 года назад

    Good explanation

  • @thesalehmahmood
    @thesalehmahmood 4 года назад

    wooh.. some pretty advanced techniques, haven't learned in a while. I'm definitely subscribing
    Thanks man! highly appreciated

  • @walidbagh
    @walidbagh 5 лет назад +1

    Underrated !

  • @davewalker5387
    @davewalker5387 5 лет назад

    Nicely explained Victor. Thank you.

  • @claudsonm
    @claudsonm 5 лет назад

    Those advanced videos are the best. Keep going man. Great work!

  • @mouhcinemahfoud
    @mouhcinemahfoud 5 лет назад

    Can you cover custom guards for next advanced tutorial?

  • @SamanZahedi
    @SamanZahedi 5 лет назад

    Your tutorials are awesome :) Thank you. Please make a tutorial for api resources.

  • @mahiazze2477
    @mahiazze2477 5 лет назад

    Please make a tutorial about elasticsearch and algolia

  • @lordgodgiven
    @lordgodgiven 5 лет назад

    Hello,
    I have a table with 30,000 records and I would like to display it in a datatable. I tried to do it but I am confronted with a problem of slowness in loading the page, it remains blank for a long time, a solution to optimize?

    • @CodersTape
      @CodersTape  5 лет назад

      You need to use pagination

  • @blackeyebrows7767
    @blackeyebrows7767 5 лет назад

    Wow this is what i'm looking for, thanks 🙏

  • @creative-commons-videos
    @creative-commons-videos 5 лет назад

    Hi, can you make a video or just help me, how we can make multiple auth system, what are the best practice ? like when we do php artisan make:auth yes, it scaffold simple auth system but not
    always we want such type of logic, some time we want more flexible logic, let say We want our user to signup via built in auth system and also if they want quick signup using social auth (facebook/google) or even they want to signup using just mobile where we can send otp and verify it, Do we need to manage 3 different tables for three different types of signup, and if no, If we add all users to one users table, then some user will have mobile, but some user will have email only, in such case how can we login ???

    • @CodersTape
      @CodersTape  5 лет назад +1

      We have not covered any of that but Laravel Socialite is already a package you can pull it and authenticate from many different resources. laravel.com/docs/6.x/socialite

  • @amarildorj
    @amarildorj 4 года назад

    Thanks for these tutorials!!!

  • @kt3152
    @kt3152 5 лет назад

    Thank You. Now i understand what is yield. php.net documentation poorly explains.

    • @CodersTape
      @CodersTape  5 лет назад

      I agree. I've read through them in trying to make sense and was unclear as to why it couldn't be easier.

  • @Stoney_Eagle
    @Stoney_Eagle 5 лет назад

    Can you imagine Netflix asking you every minute
    "Are you still watching " . $title . "?" 😂😂

  • @ishortsclips
    @ishortsclips 5 лет назад

    I love your tutorials a lot. Can you please make a video tutorial for video upload and also deploy project using Ubuntu :D

    • @CodersTape
      @CodersTape  5 лет назад

      I’ve got that a 3 part series on that in the Laravel 5.8 series. Check it out.

  • @codewithsub5083
    @codewithsub5083 5 лет назад

    Again a nice video.

  • @adam192021
    @adam192021 5 лет назад

    The BEST as always!

  • @ShaxzodbekQambaraliyev
    @ShaxzodbekQambaraliyev 5 лет назад

    Thankyou bro

  • @savedrotex
    @savedrotex 5 лет назад

    What's with the *number: 10000* syntax, that doesn't look like normal php syntax.

    • @CodersTape
      @CodersTape  5 лет назад +2

      It’s a Phpstorm code hint. Ignore that.

    • @savedrotex
      @savedrotex 5 лет назад

      @@CodersTape OK thanks for the clarification. I was getting confused. I use NetBeans for PHP and have never seen that syntax before.

    • @michabbb
      @michabbb 5 лет назад

      @@savedrotex use phpstorm, every else is just cold ☕ 😉

  • @CLizaola
    @CLizaola 5 лет назад

    Hi Victor! Great job with the series! One quick question, I am curious, do you speak Spanish?

    • @CodersTape
      @CodersTape  5 лет назад +1

      Yes

    • @CodersTape
      @CodersTape  5 лет назад

      I was born in Cuba

    • @CLizaola
      @CLizaola 5 лет назад

      Muy bien, escuche en tu podcast que tienes origen cubano, por eso me llamo la atención! Sigue así! Buen trabajo! 👍

    • @CodersTape
      @CodersTape  5 лет назад

      @@CLizaola Gracias Carlos.

  • @taruntiwari3362
    @taruntiwari3362 5 лет назад

    Can you make one tutorial how to build shopify app using laravel?

  • @taruntiwari3362
    @taruntiwari3362 5 лет назад

    Sir can you make a video on api how we can fetch data from api using laravel ?

  • @Jimi-bx3xf
    @Jimi-bx3xf 5 лет назад

    Could you make a Twitter clone ?