What are Facades in Laravel and Why Do We Use Them?

<p>Many of beginner don&rsquo;t now too much about Facades, even though it&rsquo;s one of the must important architecture concepts in Laravel and understanding it will help to make more powerful and professional projects.</p> <p><img alt="facades laravel" src="https://miro.medium.com/v2/resize:fit:630/1*J0_cMMGMXd9Jouw4p3MK3A.jpeg" style="height:467px; width:700px" /></p> <h1>So, What is Facades?</h1> <p>As a Laravel programmer you have seen&nbsp;<code>Route::</code>&nbsp;in&nbsp;<code>web.php</code>&nbsp;file. Well, this is a facade!</p> <p>Facades provide a&nbsp;<strong>static</strong>&nbsp;interface to classes that are available in the application&rsquo;s service container (which is a place to store variables and objects to use them when we need). Which mean that we can use functions without making an object from class.</p> <p><a href="https://medium.com/@sanaatrash09/what-is-facades-in-laravel-and-why-do-we-use-them-215b52898a78">Click Here</a></p>
Tags: Code PHP web