Answers for "if( request()->ajax()==false"

0

if( request()->ajax()==false

if ( !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' )
{
       # Ex. check the query and serve requested data
}
Posted by: Guest on March-30-2021

Browse Popular Code Answers by Language