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

aozikuma's avatar

Make resource controllers and policies share method names

I spend some good hours trying to find the reason my policy class was not even been reached just to find out that the policy show method didn't exist. Dumb me, I know.

My point is $controller->show and $policy->view refers to the same functional abstraction so why are they named differently? I can't be the only one to fall for this.

My suggestion? Change policy's scaffolding naming.

Thanks!

0 likes
0 replies

Please or to participate in this conversation.