We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b1d8e3 + cf7ab9d commit a7f8163Copy full SHA for a7f8163
user_guide_src/source/incoming/routing/069.php
@@ -4,7 +4,10 @@
4
// Would execute the show404 method of the App\Errors class
5
$routes->set404Override('App\Errors::show404');
6
7
-// Will display a custom view
+// Will display a custom view.
8
$routes->set404Override(static function () {
9
- echo view('my_errors/not_found.html');
+ // If you want to get the URI segments.
10
+ $segments = request()->getUri()->getSegments();
11
+
12
+ return view('my_errors/not_found.html');
13
});
0 commit comments