Support the ongoing development of →
Security Views Architecture
Last updated 1 year ago.

That's what App::error is for. It is predefined in app/start/global.php.

Use if or switch to check what the $code is, then use

return Response::view('my.view', [], $code);

(untested, not sure if it's the right way).

Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?

tzookb tzookb Joined 9 Feb 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.