Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Laravel source code analysis: Response

Shulou Source: shulou.com Published: 2022-06-03 06:31:40 11月23日 Update

/ * Determine (judgment) if the given content should be turned into JSON. * * @ param mixed $content * @ return bool * / protected function shouldBeJson ($content) {return $content instanceof Arrayable | | $content instanceof Jsonable | | $content instanceof ArrayObject | | $content instanceof JsonSerializable | | is_array ($content);} ArrayableJsonableArrayObjectJsonSerializable

TODO

Tags: Source code analysis Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi Apple Docker macOS