misc_pterodactyl-panel/app/Exceptions/Repository/RecordNotFoundException.php
Dane Everitt 54b6fb5ebd
More work on the API utilizing Laravel 5.5 exception rendering
Also corrects API format to maintain JSONAPI spec
2017-12-17 14:57:05 -06:00

20 lines
483 B
PHP

<?php
namespace Pterodactyl\Exceptions\Repository;
class RecordNotFoundException extends RepositoryException
{
/**
* 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);
}
}
}