diff --git a/app/lang/en/home.php b/app/lang/en/home.php
index 8003c49..85d9dc8 100644
--- a/app/lang/en/home.php
+++ b/app/lang/en/home.php
@@ -44,6 +44,7 @@
Laravel Tricks website was created by Stidges and Maks Surguy in November 2013
Want the source?
- The source of this website is available on Github.'
+ The source of this website is available on Github.',
+ 'default_404' => 'This is embarrasing! We can\'t find the page you are looking for. Please try the search box above'
);
diff --git a/app/start/global.php b/app/start/global.php
index e4463f0..df3feaf 100644
--- a/app/start/global.php
+++ b/app/start/global.php
@@ -36,6 +36,14 @@
return Response::view('home.error', compact('error'), 404);
});
+App::missing(function()
+{
+ $error = trans('home.default_404');
+
+ return Response::view('home.error', compact('error') , 404);
+});
+
+
/*
|--------------------------------------------------------------------------
| Maintenance Mode Handler