Commit 507bba60 authored by Taylor Otwell's avatar Taylor Otwell

dont show profiler bar on ajax request.

parent 02db9866
...@@ -4,6 +4,7 @@ use Laravel\View; ...@@ -4,6 +4,7 @@ use Laravel\View;
use Laravel\File; use Laravel\File;
use Laravel\Event; use Laravel\Event;
use Laravel\Config; use Laravel\Config;
use Laravel\Request;
class Profiler { class Profiler {
...@@ -20,9 +21,12 @@ class Profiler { ...@@ -20,9 +21,12 @@ class Profiler {
* @return string * @return string
*/ */
public static function render() public static function render()
{
if ( ! Request::ajax())
{ {
return render('path: '.__DIR__.'/template'.BLADE_EXT, static::$data); return render('path: '.__DIR__.'/template'.BLADE_EXT, static::$data);
} }
}
/** /**
* Add a log entry to the log entries array. * Add a log entry to the log entries array.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment