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

thunderball's avatar

Laravel 5 App::abort(404)

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.

0 likes
4 replies
bart's avatar

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.

bart's avatar

It seems like this feature has gone currently. Couldn't find the abort method. Anyone else?

Please or to participate in this conversation.