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.
1 parent b40471d commit 5924010Copy full SHA for 5924010
.gitignore
@@ -1,2 +1,2 @@
1
/vendor/
2
-.idea
+.idea/
src/ServiceProvider.php
@@ -20,6 +20,12 @@ public function boot()
20
* example: `/admin/products/25/edit` becomes `admin-products-edit`
21
*/
22
View::composer('*', function (\Illuminate\View\View $view) {
23
+
24
+ // Let app handle 404s
25
+ if (!request()->route()) {
26
+ return;
27
+ }
28
29
$route = request()->route()->getPath();
30
31
// Remove route parameters. product_id is removed here: `controller/product/{product_id}`
0 commit comments