Skip to content
Open

404 #62

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/lang/en/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<p>Laravel Tricks website was created by <a target="_blank" href="http://twitter.com/stidges">Stidges</a> and <a target="_blank" href="http://twitter.com/msurguy">Maks Surguy</a> in November 2013</p>

<h3>Want the source?</h3>
The source of this website is available on <a target="_blank" href="https://github.com/CodepadME/laravel-tricks" title="Get the source of this site">Github</a>.'
The source of this website is available on <a target="_blank" href="https://github.com/CodepadME/laravel-tricks" title="Get the source of this site">Github</a>.',
'default_404' => 'This is embarrasing! We can\'t find the page you are looking for. Please try the search box above'
);

8 changes: 8 additions & 0 deletions app/start/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down