📅  最后修改于: 2022-03-11 14:54:28.005000             🧑  作者: Mango
extends the Symfony\Component\HttpFoundation\Request
Determine If The Request Is Asking For JSON
if (Request::wantsJson())
{
//
}