Level 63
It's according to what you need.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, i am using:
public static function canCreate(): bool
{
return auth()->user()->application()->count() === 0 || auth()->user()->isAdmin();
}
and it's working well, but if I manually go to create page I get a 403 Forbidden which I know is what is supposed to happen, but it got me thinking do you guys design a 403 page or do you do a redirect instead? Just wanted to know your thoughts, thanks
Please or to participate in this conversation.