Support the ongoing development of Laravel.io →
Security Views Architecture
Last updated 4 months ago.
0

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 4 months ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

tzookb tzookb Joined 9 Feb 2014

Moderators

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.

© 2022 Laravel.io - All rights reserved.