Laravel: Facades

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

OLD but GOLD simple and a well summary from the documentation

reubenwedson
Автор

Video does not explain why you use a Facade because You can Still create a static function inside of the Foo class and call it.

ImalHasaranga
Автор

please try to explain the general logic of what you do,   the global idea,    like
- we create  a facade we return name
- we create a service provider that uses the name returned from the facade to bind it with the real class  with the name returned  by  the facadeAccessor
using a closure,
- and then we add  an alias to reference the facade in the app object 

and not just blindly use a black box !

peace
Автор

Somehow this video is not working, like some others from this playlist..

TDR
Автор

hi,
nice video but i'm sorry to say that it is not really useful to me, as a developer we need to know more, using a framework just a as a black box is really a bad idea especially Laravel, because of the DI container & the Facades,
you say that we don't need to return foo from the facade but don't explain the binding system the other types of bindings and the make method that does the instantiation, well i don't know if developers can use a framewok just as black whole but i can't, how is possible to debug something you don't understand
& there is so much to say about Laravel 
anyway thankyou for the video but to me Laravel deserves much deeper explanation and longer ones   .

peace
Автор

If you are going serious with building an enterprise software, DON'T USE this crazy laravel concepts like facades !!! Just use good old dependency injection! Don't bind your business logic to framework magic !

markusschindler