json([ 'error' => 'Resource not found' ], 404); } return parent::render($request, $exception); } }