Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel check if request wantsjson

extends the SymfonyComponentHttpFoundationRequest 

Determine If The Request Is Asking For JSON
if (Request::wantsJson())
{
    //
}
 
PREVIOUS NEXT
Tagged: #laravel #check #request #wantsjson
ADD COMMENT
Topic
Name
8+5 =