No video

Laravel 6 Advanced - e4 - Facades

  Рет қаралды 61,321

Coder's Tape

Coder's Tape

Күн бұрын

Пікірлер: 167
@Wael100
@Wael100 5 жыл бұрын
Your content is a pure gold buddy :)
@CodersTape
@CodersTape 5 жыл бұрын
Appreciate it
@SuperBatiskaf
@SuperBatiskaf 4 жыл бұрын
​@@CodersTape Before I was sceptical about how Laravel can serve as a framework for big applications like CRM solution with 4-tier solutions (Storage + Model + Service + View). Now I see that Laravel 6 have a powerful tools for dev. Victor, maybe you have some course about performance tunings in Laravel? Maybe some course about best practices how to work with events and queues, because event it's a best way for decoupling of classes and logics - the separate event listener can listen on User::online event and create some record in UserActivityTracking system or whatever. Thank you!
@CodersTape
@CodersTape 5 жыл бұрын
As suggested by Michael Erwin, the singleton binding should be registered in the using the register() method in the AppServiceProvider class, not the boot().
@bboydarknesz
@bboydarknesz 3 жыл бұрын
I makes me doubt before your clarification. Thanks for it. that's what you taught me too in your Service Container video.
@lazarusodhiambo2707
@lazarusodhiambo2707 4 жыл бұрын
I can't believe this content is free. Thanks a lot man.
@moussabkobisy4686
@moussabkobisy4686 2 жыл бұрын
I have been asked to explain facade in a job interview and that was my answer : laravel facade is a feature provided by laravel and it let us call the dynamic methods in a static way so, instead of doing two steps, construct the class and then call the method dynamically out of this construction, You can just call the function statically through Facade and the facade will do everything behind the scenes, facade first will go to the service container and construct the class there, then facade will use PHP magic function __callStatic to return the called method. I think this is a great feature, and you know, at the beginning I was unable to grasp the concept of facades and fully understand how does it works until I wrote my own facade using pure PHP. I think laravel creators are geniuses because they provide such a complicated concept in a way that let everyone use it, even if he doesn't know he is using it
@AbdulSamad-sq3rd
@AbdulSamad-sq3rd 2 жыл бұрын
I'm also applying for Laravel jobs. This summary answer has also helped. Thank you.
@SimpleLangSolution
@SimpleLangSolution Жыл бұрын
That was beautiful. I've been working with Laravel for the better part of 10 years and only now do I fully understand Facades. Thank you.
@michaelplichart3224
@michaelplichart3224 6 күн бұрын
Great explanation as usual with Coder's Tape Thank you very much for this video
@joelmurphy7702
@joelmurphy7702 2 жыл бұрын
This tutorial is golden. Clearly explains the inner workings of the framework to the extent it should be explained in the documentation. Thanks man!
@jeff9393
@jeff9393 5 жыл бұрын
dude i just found this channel and everything got me.. from the thumbnails design and little music intro to the simple but clear explanation.. i hope to see laravel 6 to maximum power here + as a spanish speaker who has always preferred english content about programming
@danhnguyen-sz4tv
@danhnguyen-sz4tv 2 жыл бұрын
OMG, your content is so unique. I haven't seen any video that explain everything so detail like yours
@MrMirza-uw1ry
@MrMirza-uw1ry 4 жыл бұрын
Amazing!!! I watched a lot of tutorials but never got this type explanation strategy that take learner from ground to sky. Most of the teachers ask to learn prerequisite to proceed further. But you teach prerequisite and advance at the same time. Really appreciated! Keep the good work up (y)
@nguyenmanh8087
@nguyenmanh8087 2 жыл бұрын
Best explain about Facade ever, you really did a good job bro! Keep going!
@olivierbassin286
@olivierbassin286 5 жыл бұрын
Mate, I recently hit a wall in my learning and each one of your videos brightens my day. This is some of the best content out there to me, especially the more advanced stuff that's almost never discussed.
@CodersTape
@CodersTape 5 жыл бұрын
Happy to help
@francisco9180
@francisco9180 3 жыл бұрын
Only words I have right now: "Fantastic tutorials!!"
@RishabKapadia
@RishabKapadia Жыл бұрын
Legendary explanation. 💯🚀🙏 you should be the official laravel tutor.
@rustin-m
@rustin-m 3 жыл бұрын
You are an incredibly perfect teacher!
@AhmedMwafi
@AhmedMwafi 2 жыл бұрын
Clear and smooth, nailed it
@FranciscoSierraLDU
@FranciscoSierraLDU 5 жыл бұрын
I should say that I like your videos but what I really want to say is that I ABSOLUTELY LOVE THEM!!! You are awesome, so i'll start calling you Sensei! Greetings from Ecuador.
@CodersTape
@CodersTape 5 жыл бұрын
Haha thanks for the comment. Gracias!
@alinawaz4034
@alinawaz4034 5 жыл бұрын
first time i get what Facades are thanks man love you!!
@MG-wx8yx
@MG-wx8yx 5 жыл бұрын
"So how cool is that?". Thanks for sharing the knowledge bro, I appreciate it so much. I'm watching the Vue series first then I will come back for this Laravel series. You are my sensei. Subscribed since the Laravel From Scratch series.
@CodersTape
@CodersTape 5 жыл бұрын
I genuinely think those things are so cool. How magical they actually seem! Thanks.
@user-xb6jm5bz3x
@user-xb6jm5bz3x 5 жыл бұрын
Best videos I ever saw for laravel
@ZSteven
@ZSteven 3 жыл бұрын
Wow. I am impressed with how well your videos are made! Sad that these didn't exist when I started with laravel. Thx to this it will be so much easyer to implement these consepts to other frameworks :P And ofc it will help out a lot with my fresh Laravel project (haven't done that in a while :D)
@aswadali7547
@aswadali7547 4 жыл бұрын
Your content is very helpful, keep it up. Also, it would help a lot of people if you could create a public repo for future tutorial series, it would serve greatly as reference material. Other than that your content is pure gold.
@poldohub5275
@poldohub5275 5 жыл бұрын
Dude you're awesome. Please upload everyday.
@84Zimone
@84Zimone 4 жыл бұрын
It is certainly prime quality video content
@SethSetiadha
@SethSetiadha 3 жыл бұрын
when you ask "Are you with me so far?" I was like...."not really" hahaha
@yurabobrov6717
@yurabobrov6717 5 жыл бұрын
This is an absolutely fantastic lesson! 👏👏👏 can't waiting a new content on your channel!
@ArunKumar-kb1bb
@ArunKumar-kb1bb 3 жыл бұрын
You have explained Facade in an amazing way. Thank you so much.
@kamal-ahmed
@kamal-ahmed 4 жыл бұрын
This so clear and amazing that I am speechless. I understood a very confusing concept very clearly and I can now explain it to others. Thank you so muh for this great tutorial.
@geneartista9714
@geneartista9714 2 жыл бұрын
This is lit, thanks for your hardwork continue doing your thing
@ahmadkhaled7497
@ahmadkhaled7497 3 ай бұрын
Keep up the good work mate!
@MohammadRobih
@MohammadRobih 5 жыл бұрын
I love your explaination. This is first I get the idea how facade actually work. Thanks man.
@Vinothvipin
@Vinothvipin 5 жыл бұрын
Zero dislike is the proof for master piece :) keep rock ...
@SowrenSen
@SowrenSen 5 жыл бұрын
Wow! These are really some cool advanced stuffs. It's totally entertaining the way you explain. Love it!
@jayreigning
@jayreigning 4 жыл бұрын
man!!, where have you been!!! you are so good at this
@KNRuma
@KNRuma 11 ай бұрын
This is the BEST!
@teddyperera8531
@teddyperera8531 3 жыл бұрын
nice and smooth explanation. your teaching is amazing.
@1mr4n4li
@1mr4n4li 5 жыл бұрын
in laravel you can convert any dynamic php library to facades if you just add namespace starting with /App/Yourlib
@CodersTape
@CodersTape 5 жыл бұрын
I think you are talking about realtime Facades? If you do, then you need to add the the namespace \Facades\Your\Class\Here.
@1mr4n4li
@1mr4n4li 5 жыл бұрын
@@CodersTape I am not sure its realtime or what, But I mostly import my class with namespace starting with slash and then easily I can use it as facades. I liked a lot facades idea and I have tried to convince codeigniter 4's developers but they believed its not as useful as I am telling them.
@MohamedAjhar
@MohamedAjhar Жыл бұрын
This is great and useful lesson, sadly there are no any tutorials recently
@mhnayem6023
@mhnayem6023 3 жыл бұрын
Thanks for sharing the knowledge bro, I appreciate it so much. I love your explaination. This is first I get the idea how facade actually work. Thanks man.
@PhucNguyen-zh4bo
@PhucNguyen-zh4bo 4 жыл бұрын
this video saved my life
@ivnstudios6135
@ivnstudios6135 4 жыл бұрын
thanks a lot Victor I really like the youtube videos you made , and they are very direct to the point , the example made on the video is perfect! thanks
@hieudangthanh5248
@hieudangthanh5248 Жыл бұрын
Awesome tutorial! Thank you.
@TheMarcelitto
@TheMarcelitto 2 жыл бұрын
Amazing, thanks for sharing!
@KeyserEngelberthAbarca
@KeyserEngelberthAbarca 5 жыл бұрын
Hey Victor, very well explained and easy to understand. Gr8 job!
@ush6939
@ush6939 4 жыл бұрын
man thank you so much for your hard work, i've been learning a lot of things through out this series, but i would really appreaciate it if you can make a video about how laravel events work as well as channels and stuff, its only this side of laravel that i don't really understand well enough. and thanks again.
@CodersTape
@CodersTape 4 жыл бұрын
I’ve got a video on events
@ceyhunyucel4749
@ceyhunyucel4749 4 жыл бұрын
Viktor,this tutorial is really awesome
@logaanathan4374
@logaanathan4374 5 жыл бұрын
Thank you very much.. initially, i dont have intrest in it.. at last your explanation was really awesome...thanks buddy..
@mouhamaddiop1144
@mouhamaddiop1144 4 жыл бұрын
one of the best tuts in laravel. Thanks a lot
@AnoopD2013
@AnoopD2013 5 жыл бұрын
Victor thank you so much for such a wonderful classes .
@ThePublicTutorials
@ThePublicTutorials 5 жыл бұрын
Glad to see the Laravel vids keep coming! I have a ton of use for them. Any chance for a tutorial on invitation-only registration?
@kvanca2330
@kvanca2330 2 жыл бұрын
Amazing work. Thanks
@Netherlands031
@Netherlands031 4 жыл бұрын
The 'old way' presented at 16:28 - that is the really old school way of doing, without the service container. You can register things to the service container without having to access them using a facade, so there's a middle way here.
@abdulwakeel8937
@abdulwakeel8937 5 жыл бұрын
Awesome , You clear my concept about Facades
@codingstuff8305
@codingstuff8305 5 жыл бұрын
Hi Victor. Thanks for this high quality video as always. Even if you're explanations were clear I have to see it many times because it's not easy to understand. It's not an easy subject🤔. .. You're still my favorite laravel channel dont worry 😉.
@CodersTape
@CodersTape 5 жыл бұрын
Like I said using facades is easy, understanding how they work, that’s a totally different ballgame.
@codingstuff8305
@codingstuff8305 5 жыл бұрын
@@CodersTape indeed that's what I meant. I saw your videos twice to understand how facades work. Thanks a lot again for sharing your knowledges !!
@pittwerx
@pittwerx 3 жыл бұрын
Such good content. Thanks!
@mohammedsalman3397
@mohammedsalman3397 4 жыл бұрын
!Muchas gracias!
@gazorbpazorbian
@gazorbpazorbian 5 жыл бұрын
Awesome job dude, loved this. Melted my brain. Need to look at it again, Understood barely half
@CodersTape
@CodersTape 5 жыл бұрын
Definitely must watch 2-3 times to understand what is happening. But that’s the level of understanding that you need to make the correct decisions when writing your projects.
@gazorbpazorbian
@gazorbpazorbian 5 жыл бұрын
@@CodersTape dude, you should do a tutorial on push messages and notifications
@adam192021
@adam192021 5 жыл бұрын
The BEST as always!
@rfpdl
@rfpdl 4 жыл бұрын
Really good playlist and videos. Keep it up!
@user-vq6pe5px9k
@user-vq6pe5px9k 5 жыл бұрын
Awesome man, just keep doing this stuff. I would also really like to watch a course(mb even on udemy) about testing A-Z. RN I dont test my apps at all, cuz I just dont know what Unit, Integration tests are, how to implement it, what the difference btw PhpUnit and Xprint and ofcs I dont have a clue about any of that things. I would really love to watch a fully immersing course on testing php applications in general and laravel ones particularly. Thank you for everything u provide here for free. Its rare to see such talented teacher spreading the word with no charge, I respect it and I value it. Keep going.
@CodersTape
@CodersTape 5 жыл бұрын
The course I have on Udemy is done using testing. Might be worth checking out.
@AugustoTitan
@AugustoTitan 5 жыл бұрын
Amazing course! Keep it up.
@RobertCordes
@RobertCordes 5 жыл бұрын
Love this series. Keep up the great work :)
@vibhorgupta3857
@vibhorgupta3857 5 жыл бұрын
Your explaintion is really beautifil and simple
@dinxb9348
@dinxb9348 2 жыл бұрын
Amazing lesson... thank you so much. Is it possible to construct the PostcardSendingService with dynamic arguments (country, width and height) ?
@AbdulSamad-sq3rd
@AbdulSamad-sq3rd 2 жыл бұрын
I was thinking the same.
@mahmod20001
@mahmod20001 5 жыл бұрын
Thanks a lot for these series!!
@jh-to4us
@jh-to4us 3 жыл бұрын
I have learned a lot Thank you so much!!
@kaungkaung8009
@kaungkaung8009 3 жыл бұрын
Thanks bro really help me to understand more
@rjfortis5415
@rjfortis5415 5 жыл бұрын
I really love the intro bro jaja👌
@CodersTape
@CodersTape 5 жыл бұрын
Rock on! 🤘
@devMoemen
@devMoemen 2 жыл бұрын
Amazing! thank you.
@mohamedgharbi7582
@mohamedgharbi7582 5 жыл бұрын
i love it without seeing the video
@michaelerwin8744
@michaelerwin8744 5 жыл бұрын
Why did you boot method instead of register to bind a service?
@CodersTape
@CodersTape 5 жыл бұрын
Good catch. Yes, it should have been in the register() method instead.
@michaelerwin8744
@michaelerwin8744 5 жыл бұрын
@@CodersTape Thanks for clarification.
@clusterbyblocks
@clusterbyblocks 4 жыл бұрын
Very valuable content. thanks!
@AbrarAhmad-mz8vl
@AbrarAhmad-mz8vl 3 жыл бұрын
Gold!
@antontraceur
@antontraceur 3 жыл бұрын
Long story short: If you want more bugs in your app use Facades pattern. They didn't wanted to follow good practices so instead of using dependency injection and splitting you application logic correctly into services and different types of classes they've just created a hack to use static methods from anywhere you want. If your an experienced Laravel developer and still don't get why df Facades exists just go Symfony and do things the right way...
@thisisthelogic
@thisisthelogic 2 жыл бұрын
wonderful!
@kiasaty
@kiasaty 4 жыл бұрын
that was fantastic!! but I've got a question. In Lumen, Facades are turned off by default, and you can activate it to use it in your project if you'd like to. What's that about? does using facades have a negative affect on performance?
@kikitumiwan6597
@kikitumiwan6597 5 жыл бұрын
it's super.. super.. awesome!....
@bakre_dev8728
@bakre_dev8728 Жыл бұрын
@michabbb
@michabbb 5 жыл бұрын
never have seen such a great explanation of laravel! do you have a full laravel course? 😊
@CodersTape
@CodersTape 5 жыл бұрын
Yes. Right in the channel.
@chang112x
@chang112x 4 жыл бұрын
Nice tuts... keep going :D
@ashishnimrot4218
@ashishnimrot4218 5 жыл бұрын
Awesome sir..
@devfarhod
@devfarhod 4 жыл бұрын
Thanks for such awesome pro tutorials. I really liked the video style. Can you share your secret, please? Do you write a video script before recording or speak as you record?
@xavolinks
@xavolinks 4 жыл бұрын
Muito bom. Very good. I'm from Brazil
@josephnduati1214
@josephnduati1214 4 жыл бұрын
The GOAT 🐐
@sunduskareem3276
@sunduskareem3276 4 жыл бұрын
Thanks so much , this really helped me
@banujan.b2479
@banujan.b2479 4 жыл бұрын
Coool!!!!!!! But I have a doubt, You are using app->singleton() which means we can't create 2 or more postcard instance with difference values right?
@user-vc3xn7gh3d
@user-vc3xn7gh3d 5 жыл бұрын
What do you think about using facades. Is it good way? The magic methods make reading the code more complicated. Also IDE can't make variable hinting (you can see this at 16:20).
@CodersTape
@CodersTape 5 жыл бұрын
I like facades and use them in my projects. IDE support has gotten better but you’re right, it’s not 100% yet. But I do know that Phpstorm is just working overtime to add Laravel specific features. All of the latest releases have had Laravel features.
@TUTORIALSUZ
@TUTORIALSUZ 4 жыл бұрын
Thank you!!!!!!!!!!
@free2idol1
@free2idol1 3 жыл бұрын
Thanks for creating awesome videos... I just have a few quick questions: 1/ In 21:01 the Mailer() class is not auto-loaded so how can we initialize it as $mailer = new Mailer(...) ? 2/In 21:01: $mailer = new Mailer( $this->app['view'], $this->app['swift.mailer'], $this->app['events'] ); 'view' and 'events' alias is not stated in /bootstrap/cache/services.php, then how can it be resolved via app() ?
@user-tk1re2hd2y
@user-tk1re2hd2y 5 жыл бұрын
More! More! More!
@CodersTape
@CodersTape 5 жыл бұрын
Up next, Macros...
@minjon56
@minjon56 5 жыл бұрын
I like the video and I understand the facts. What I don't get is - why would we construct the PostcardSendingService class, bind the Postcard class to it, and then use two methods to call the regular hello method from the first class statically in the latter one. Can we simply construct the Postcard class, call the getFacadeAccessor method on it, and use the static hello method from within that class. Is your approach for educational purpose only or I am missing something?:)
@user-vq6pe5px9k
@user-vq6pe5px9k 5 жыл бұрын
As you can see from the example of laravel impelementation self (mailer and Mail facade), you can notice that they also use the approach of splitting the logic of instansiating a facade functionality and base class. So, think its related to *separation of concerns, or single responsibility prinsiple* which is well known at object oriented programming.
@natenatebobate
@natenatebobate 4 жыл бұрын
Victor, I'm quite new at webdev and brand new at laravel, and almost everything I have learned about it I learned from you. You're like a god to me (despite that I'm an atheist). I've spent dozens of hours going over your 4-hr beginner class, as well as your other vids. However, often it seems I need, or it would be helpful, to know what some of the advanced topics are about, at least on the surface, like Facades. Is there possibly a concise and explicit version of this video for learning WTF a facade is, because after watching this entire video, rewinding in places, I still don't know what a facads is (you never said what a facade is). I got some inkling about some of the features of a facade (seems like static method but is not), but I really have no idea if I have ever encountered one in my personal projects or what to do about it if I did. Of course, the Laravel docs are equally cryptic; (read the first few paragraphs on facades and quote me the part that says "A facade is a ...). Clearly, the docs are almost useless to newbies. Without you, Victor, (and a couple others) I wouldn't have the faintest idea how to use the framework. But I can't advance if everything is geared toward experienced programmers only. Can ANYONE ELSE out there help me out in case Victor doesn't get around to reading this? Any help/contact would be very, very appreciated.
@santiagos4290
@santiagos4290 3 жыл бұрын
Kind of creating a static/ utility class
@innocentmazando3808
@innocentmazando3808 4 жыл бұрын
thats what am talking about
@armandomora2286
@armandomora2286 4 жыл бұрын
and that allow to automatically declare the variables of the constructor
@iwandepee
@iwandepee 3 жыл бұрын
greattt
@hamzaaslam697
@hamzaaslam697 3 жыл бұрын
damn you are just great man
@diohngoe6028
@diohngoe6028 4 жыл бұрын
One of the best laravel's tut, well explained. but i've got an issue. upon sending a postcard, i receive an error message say "No such host is known" when i'm offline and when i'm online i'll receive an error message "Cannot send message without a sender address" please any help???
@humanity0true0way
@humanity0true0way 3 жыл бұрын
10 dislikes !!!!!! Thanks man for this great content
@robertrocha7216
@robertrocha7216 3 жыл бұрын
I'm confused as to why you are using the boot method to create your singleton and not the register method instead in AppServiceProvider. Care to explain?
@robertrocha7216
@robertrocha7216 3 жыл бұрын
nvm just saw the old comment correcting this.
Laravel 6 Advanced - e5 - Macros
19:04
Coder's Tape
Рет қаралды 34 М.
Enums considered harmful
9:23
Matt Pocock
Рет қаралды 203 М.
天使救了路飞!#天使#小丑#路飞#家庭
00:35
家庭搞笑日记
Рет қаралды 85 МЛН
Meet the one boy from the Ronaldo edit in India
00:30
Younes Zarou
Рет қаралды 15 МЛН
Алексей Щербаков разнес ВДВшников
00:47
Implementing Laravel Facades from SCRATCH!
10:12
Mateus Guimarães
Рет қаралды 2,3 М.
Laravel 6 Advanced - e6 - Pipelines
28:53
Coder's Tape
Рет қаралды 52 М.
How to use Laravel's bind and singleton methods
9:40
Andrew Schmelyun
Рет қаралды 22 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 172 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 145 М.
Laravel 6 Advanced - e1 - Service Container
23:27
Coder's Tape
Рет қаралды 273 М.
Laravel Beginner tutorial | Laravel Facade - simplest explanation
13:50
Bitfumes - AI & LLMs
Рет қаралды 45 М.
天使救了路飞!#天使#小丑#路飞#家庭
00:35
家庭搞笑日记
Рет қаралды 85 МЛН