You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is the right section to post a question.. but I would like to know how to trigger 404 error programmatically...
I know that this:
respond('404', function ($request) {
$page = $request->uri();
echo "Oops, it looks like $page doesn't exist..\n";
});
will be triggered when a route doesn't exists.. and this works well! but I would like to know how to manually call "something" in way to trigger the above respond.
thank you
The text was updated successfully, but these errors were encountered:
I don't know if this is the right section to post a question.. but I would like to know how to trigger 404 error programmatically...
I know that this:
respond('404', function ($request) {
$page = $request->uri();
echo "Oops, it looks like $page doesn't exist..\n";
});
will be triggered when a route doesn't exists.. and this works well! but I would like to know how to manually call "something" in way to trigger the above respond.
thank you
The text was updated successfully, but these errors were encountered: