Laravel Check If Request Wantsjson

[Solved] Laravel Check If Request Wantsjson | Php - Code Explorer | yomemimo.com
Question : laravel check if request wantsjson

Answered by : lokesh-ramchandani-in6l3jq294i2

extends the Symfony\Component\HttpFoundation\Request
Determine If The Request Is Asking For JSON
if (Request::wantsJson())
{ //
}

Source : | Last Update : Sun, 12 Jul 20

Answers related to laravel check if request wantsjson

Code Explorer Popular Question For Php