Commit 17bd505f authored by Taylor Otwell's avatar Taylor Otwell

pass response in laravel done event.

parent 507bba60
...@@ -246,4 +246,4 @@ $response->send(); ...@@ -246,4 +246,4 @@ $response->send();
| |
*/ */
Event::fire('laravel.done'); Event::fire('laravel.done', array($response));
\ No newline at end of file \ No newline at end of file
...@@ -79,7 +79,7 @@ class Profiler { ...@@ -79,7 +79,7 @@ class Profiler {
// We'll attach the profiler to the "done" event so that we can easily // We'll attach the profiler to the "done" event so that we can easily
// attach the profiler output to the end of the output sent to the // attach the profiler output to the end of the output sent to the
// browser. This will display the profiler's nice toolbar. // browser. This will display the profiler's nice toolbar.
Event::listen('laravel.done', function() Event::listen('laravel.done', function($response)
{ {
echo Profiler::render(); echo Profiler::render();
}); });
......
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