What getFacadeAccessor method does?

Posted by Andre Scott | Updated on

Laravel Facades are another way to use classes without manually creating an object of the class. Examples of Laravel Facades are DB, Cache, Cookie, etc.

getFacadeAccessor() method in Laravel is used to return the name of a service container binding.

Example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers