Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Jell92's avatar

How to see available methods on a facade

Hello,

So the title pretty much says it all. How do I know which methods are available on a laravel Facade. For example how do I quickly see all available methods on the File:: Facade?

Do I have to see what the getFacadeAccessor returns and see the methods in that class?

Thanks, Anders

0 likes
12 replies
baumgars's avatar

@InaniELHoussain yes, this is a paid plugin. I checked it out some time ago and it did not work well. Other than that is there a "foot" way to those methods or is this a "secret" magic behing Laravel? It might not be secret since its open-source but its not intuitive to get there.

baumgars's avatar

@JussiMannisto your post lacked this information and especially in the open source / laravel sphere this is an important point.

JussiMannisto's avatar

@baumgars ???

Laravel Idea is the paid plugin. But it's cheap and definitely worth the cost.

I really can't help you if you can't read.

baumgars's avatar

@krisi_gjika I think the point of good IDE support would be to not needing to go down that path but i am in contact with the developers of that plugin so i am sure i will find out one day.

kevinbui's avatar

This is a pretty old thread. Still, I want to give a thorough answer if anyone needs this.

First, a facade is not the actual implementation. it is only a proxy to the true implementation. For example, facade Illuminate\Support\Facades\File proxies to the Illuminate\Filesystem\Filesystem class. The alias files is returned by that getFacadeAccessor method.

These days we can see all available methods in the DocBlock of any facade.

If we want to see the list of methods from the actual implementation (which is my preferred way), go to the Illuminate\Foundation\Application::registerCoreContainerAliases() method. All aliases are mapped to the concrete implementations there.

Glukinho's avatar

Just press CTRL+B on a facade and you will jump to the source file with a list of its methods in Docblock and Structure window (Alt+7).

P.S. I'm talking about PHPStorm, of course.

Please or to participate in this conversation.