InteractsWithContentTypes

Illuminate\Http\Concerns\InteractsWithContentTypes

trait src/Illuminate/Http/Concerns/InteractsWithContentTypes.php

accepts

v11.0.0 以前から

accepts($contentTypes)
@param string|array $contentTypes
@return bool
  1. v11.0.0 追加
    変更後
    accepts($contentTypes) [@param string|array $contentTypes, @return bool]

acceptsAnyContentType

v11.0.0 以前から

acceptsAnyContentType()
@return bool
  1. v11.0.0 追加
    変更後
    acceptsAnyContentType() [@return bool]

acceptsHtml

v11.0.0 以前から

acceptsHtml()
@return bool
  1. v11.0.0 追加
    変更後
    acceptsHtml() [@return bool]

acceptsJson

v11.0.0 以前から

acceptsJson()
@return bool
  1. v11.0.0 追加
    変更後
    acceptsJson() [@return bool]

acceptsMarkdown

v12.55.0 から

acceptsMarkdown()
@return bool
  1. v12.55.0 追加
    変更後
    acceptsMarkdown() [@return bool]

expectsJson

v11.0.0 以前から

expectsJson()
@return bool
  1. v11.0.0 追加
    変更後
    expectsJson() [@return bool]

format

v11.0.0 以前から

format($default = 'html')
@param string $default
@return string
  1. v11.0.0 追加
    変更後
    format($default = 'html') [@param string $default, @return string]

isJson

v11.0.0 以前から

isJson()
@return bool
  1. v11.0.0 追加
    変更後
    isJson() [@return bool]

matchesType

v11.0.0 以前から

static

static matchesType($actual, $type)
@param string $actual
@param string $type
@return bool
  1. v11.0.0 追加
    変更後
    static matchesType($actual, $type) [@param string $actual, @param string $type, @return bool]

prefers

v11.0.0 以前から

prefers($contentTypes)
@param string|array $contentTypes
@return string|null
  1. v11.0.0 追加
    変更後
    prefers($contentTypes) [@param string|array $contentTypes, @return string|null]

wantsJson

v11.0.0 以前から

wantsJson()
@return bool
  1. v11.0.0 追加
    変更後
    wantsJson() [@return bool]

wantsMarkdown

v12.55.0 から

wantsMarkdown()
@return bool
  1. v12.55.0 追加
    変更後
    wantsMarkdown() [@return bool]