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