Level 13
Did you try abort(404)? The method is now a simple helper function included in the Foundation package. But it seems that the method doesn't exist either.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys, I cannot call App::abort(404) from my controller, I'm getting 'Attempted to call method "abort" on class "Illuminate\Foundation\Application"'
Did anyone encounter same problem?
Thanks.
Please or to participate in this conversation.