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).
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community