misc_pterodactyl-panel/app/Exceptions/Repository/RecordNotFoundException.php

21 lines
483 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Exceptions\Repository;
class RecordNotFoundException extends RepositoryException
2016-12-07 22:46:38 +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
*/
public function render($request)
{
if (! config('app.debug')) {
return response()->view('errors.404', [], 404);
}
}
}