accepts($type ?: 'accept:application/json')) { throw new NotAcceptableHttpException(); } return $next($request); } }