public static function getAcceptableContentTypes() { //Method inherited from \Symfony\Component\HttpFoundation\Request return \Illuminate\Http\Request::getAcceptableContentTypes(); }
public static function wantsHtml() { $acceptable = \Request::getAcceptableContentTypes(); return isset($acceptable[0]) && $acceptable[0] == 'text/html'; }