Skip to content

404 #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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