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!
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.
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 ❤️👍
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
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
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.
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.
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
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.
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.
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.
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?
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 ???
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
Great series, I learnt alot.
Thank you
Love these advanced in depth videos. Best on RUclips. You are the man Victor.
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!
Thanks! I’ll keep them coming, if you promise you’ll keep sharing the videos and bringing in more people to the channel
I swear to God this Advanced Laravel playlist is helping me so much. Thanks man for making these tutorials
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.
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 ❤️👍
There’s a method to the madness. 🎬
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
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
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.
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.
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
I'm really enjoying watching this series. It has really helped me!
Is there any way you can show us some real project example where you use Generators and LazyCollections ?
Victor, Can we use this for asynchronous like javascript?
I love you man) I want to be a programmer!!! will you marry me? or it work's something else?
Yay first 😻
Can u please help me on how can I update .env file from controller?
I would like to know real case usage of this methods
Thanks, bro, keep going with this series.!
javascript has this feature also.
totally subscribed!
hey @Coder's Tape Collection & LazyCollection working same both are getting stoped after 10000000 times is I am doing something wrong
You are a life saver, thanks bro
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.
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.
bro you're very awesome people. I learned laravel thanks to you. and I'm being advanced level thanks to you too.
mindblowing
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.
where you are gone mate?
Good explanation
wooh.. some pretty advanced techniques, haven't learned in a while. I'm definitely subscribing
Thanks man! highly appreciated
Underrated !
Nicely explained Victor. Thank you.
Those advanced videos are the best. Keep going man. Great work!
Can you cover custom guards for next advanced tutorial?
Your tutorials are awesome :) Thank you. Please make a tutorial for api resources.
Please make a tutorial about elasticsearch and algolia
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?
You need to use pagination
Wow this is what i'm looking for, thanks 🙏
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 ???
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
Thanks for these tutorials!!!
Thank You. Now i understand what is yield. php.net documentation poorly explains.
I agree. I've read through them in trying to make sense and was unclear as to why it couldn't be easier.
Can you imagine Netflix asking you every minute
"Are you still watching " . $title . "?" 😂😂
Lmao
I love your tutorials a lot. Can you please make a video tutorial for video upload and also deploy project using Ubuntu :D
I’ve got that a 3 part series on that in the Laravel 5.8 series. Check it out.
Again a nice video.
The BEST as always!
Thankyou bro
What's with the *number: 10000* syntax, that doesn't look like normal php syntax.
It’s a Phpstorm code hint. Ignore that.
@@CodersTape OK thanks for the clarification. I was getting confused. I use NetBeans for PHP and have never seen that syntax before.
@@savedrotex use phpstorm, every else is just cold ☕ 😉
Hi Victor! Great job with the series! One quick question, I am curious, do you speak Spanish?
Yes
I was born in Cuba
Muy bien, escuche en tu podcast que tienes origen cubano, por eso me llamo la atención! Sigue así! Buen trabajo! 👍
@@CLizaola Gracias Carlos.
Can you make one tutorial how to build shopify app using laravel?
Sir can you make a video on api how we can fetch data from api using laravel ?
Could you make a Twitter clone ?