Define the Laravel Facades

Define the Laravel Facades ?

Laravel Facades provides a static like interface to classes that are available in the application’s service container.

Laravel self ships with many facades which provide access to almost all features of Laravel’s.
Laravel Facades serve as “static proxies” to underlying classes in the service container and provides benefits of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods of classes. All of Laravel’s facades are defined in the IlluminateSupportFacades namespace. You can easily access a Facade like so:

use IlluminateSupportFacadesCache;
Route::get(‘/cache’, function () {
return Cache::get(‘key’);

How to use custom table in Laravel Model ?

We can use custom table in Laravel by overriding protected $table property of Eloquent. Below is sample uses

class User extends Eloquent{
protected $table=”my_custom_table”;