I\'m using Laravel4 framework and I came across this problem.
I want to display a custom 404 error depending on requested url.
For example:
R
In app/start/global.php
App::missing(function($exception)
{
if (Request::is('admin/*'))
{
return Response::view('admin.missing',array(),404);
}
else if (Request::is('site/*'))
{
return Response::view('site.missing',array(),404);
}
else
{
return Response::view('default.missing',array(),404);
}
});
In your view, you can find $something
with {{ Request::path(); }}
or {{ Request::segment(); }}