/** * Handle the event. * * @param AddonsHaveRegistered $event */ public function handle(AddonsHaveRegistered $event) { $addons = $event->getAddons(); /* @var Addon $addon */ foreach ($addons as $addon) { $this->paths->addPath($addon->getNamespace(), $addon->getPath('resources')); } }
/** * Add a namespace path hint. * * @param $namespace * @param $path * @return $this */ public function addPath($namespace, $path) { $this->paths->addPath($namespace, $path); return $this; }