Support the ongoing development of Laravel.io →
Security Views Architecture
Last updated 2 years 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 2 years ago.
0

Sign in to participate in this thread!

Eventy

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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.