prefix built-in events with laravel.
This commit is contained in:
@@ -188,7 +188,7 @@ class View implements ArrayAccess {
|
||||
*/
|
||||
public static function composer($view, $composer)
|
||||
{
|
||||
Event::listen("composing: {$view}", $composer);
|
||||
Event::listen("laravel.composing: {$view}", $composer);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -201,7 +201,7 @@ class View implements ArrayAccess {
|
||||
// To allow bundles or other pieces of the application to modify the
|
||||
// view before it is rendered, we will fire an event, passing in the
|
||||
// view instance so it can modified by any of the listeners.
|
||||
Event::fire("composing: {$this->view}", array($this));
|
||||
Event::fire("laravel.composing: {$this->view}", array($this));
|
||||
|
||||
$data = $this->data();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user