I'm starting to use Laravel and I would like to know how I should choose one over the other.
As of version 5.0 Laravel documentation changed request example from Request::get('form_input')
to $request->get('form_input')
, but I couldn't find any explanation as for why they've done that.
My doubts are:
Requests
?Straigth answer: No (particular difference) Except that: Referencing from this source, How laravel facades work and how to use
A Laravel facade is a class which provides a static-like interface to services inside the container. These facades, according to the documentation, serve as a proxy for accessing the underlying implementation of the container’s services.
I couldn't agree more with this. But as for me, using facade pattern simply make my code cleaner :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With