-
Notifications
You must be signed in to change notification settings - Fork 214
Description
Terms
- Before you openning this issue, i have checked if the issue has already been reported.
Bagisto Version(s) affected
2.3
Issue Description
Hi
I am a regular package developer for Bagisto. Recently, I started using your updated version, and I’m trying to add my custom admin menu icon to the header. However, the event listener is not working as expected.
My icon only appears when my extension’s route is active. But when I navigate to other core packages of Bagisto, the icon disappears because the following event is not triggered:
Event::listen('bagisto.admin.layout.head', function ($viewRenderEventManager) {
$viewRenderEventManager->addTemplate('ship::admin.layouts.style');
});
Preconditions
Laravel 11
OS - MAC and Herd
Bagisto 2.3
Steps to reproduce
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected Result
In the admin.layouts.style file, I have included a link to my vendor package, which points to the compiled assets. However, if the event is not triggered, this code does not load, and therefore, the assets are not included.
Actual Result
Event::listen('bagisto.admin.layout.head', function ($viewRenderEventManager) {
// dd('I am testing');
});
I also tried with this but not working. Even though my service provider working fine.
Screenshots
No response
Additional context
No response