2015-12-06 13:58:49 -05:00
|
|
|
<?php
|
|
|
|
|
2017-07-01 15:29:49 -05:00
|
|
|
namespace Pterodactyl\Exceptions\Repository;
|
2015-12-06 13:58:49 -05:00
|
|
|
|
2017-12-17 14:57:05 -06:00
|
|
|
class RecordNotFoundException extends RepositoryException
|
2016-12-07 22:46:38 +00:00
|
|
|
{
|
2017-09-24 12:32:29 -05:00
|
|
|
/**
|
2017-12-17 14:57:05 -06: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 12:32:29 -05:00
|
|
|
*/
|
2017-12-17 14:57:05 -06:00
|
|
|
public function render($request)
|
2017-09-24 12:32:29 -05:00
|
|
|
{
|
2017-12-17 14:57:05 -06:00
|
|
|
if (! config('app.debug')) {
|
|
|
|
return response()->view('errors.404', [], 404);
|
|
|
|
}
|
2017-09-24 12:32:29 -05:00
|
|
|
}
|
2015-12-06 13:58:49 -05:00
|
|
|
}
|