Skip to content

Commit 633c2bd

Browse files
committed
Pass the path to the filter event.
1 parent a976c55 commit 633c2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/view.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public function get()
374374
// us do something like run the contents through Jade, etc.
375375
if (Event::listeners('view.filter'))
376376
{
377-
return Event::first('view.filter', $content);
377+
return Event::first('view.filter', array($content, $this->path));
378378
}
379379

380380
return $content;

0 commit comments

Comments
 (0)