protected function transformEloquentException(Exception $exception)
{
if ($exception instanceof ModelNotFoundException) {
throw new ResourceNotFoundException();
}
if ($exception instanceof RelationNotFoundException) {
throw new RelationNotFoundException();
}
}