Create and Use Custom Facades in Laravel
Lets create a class called Test class Test{ public function testfunction(){ return 'testfunctioning'; } public function test2() { return 'testing2'; } } And bind the class . app()->bind('Test',function (){ return…