2015-12-06 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
|
2017-07-01 20:29:49 +00:00
|
|
|
namespace Pterodactyl\Exceptions\Repository;
|
2015-12-06 18:58:49 +00:00
|
|
|
|
2017-12-17 20:57:05 +00:00
|
|
|
class RecordNotFoundException extends RepositoryException
|
2016-12-07 22:46:38 +00:00
|
|
|
{
|
2017-09-24 17:32:29 +00:00
|
|
|
/**
|
2017-12-17 20:57:05 +00:00
|
|
|
* Handle request to render this exception to a user. Returns the default
|
|
|
|
* 404 page view.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Http\Request $request
|
|
|
|
* @return \Illuminate\Http\Response
|
2017-09-24 17:32:29 +00:00
|
|
|
*/
|
2017-12-17 20:57:05 +00:00
|
|
|
public function render($request)
|
2017-09-24 17:32:29 +00:00
|
|
|
{
|
2017-12-17 20:57:05 +00:00
|
|
|
if (! config('app.debug')) {
|
|
|
|
return response()->view('errors.404', [], 404);
|
|
|
|
}
|
2017-09-24 17:32:29 +00:00
|
|
|
}
|
2015-12-06 18:58:49 +00:00
|
|
|
}
|