A way to load custom module (library) into another module? #1501
manojdhrma
started this conversation in
General
Replies: 1 comment 1 reply
-
Since you're using Livewire I would embed the livewire component into the dashboard view something like:
which would load a component located in a Chat module called log. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am very interested with this laravel-modules. It is awesome to work with and scaling the application with modules very easy.
I'm trying to experiment with different approaches with this.
One idea is that, I need to load a custom module as a library component into one of the main module to function inside as an instance. The idea actually works like a plugin. And I can set it to enable or disable from admin area or similar place.
(I am using "laravel-modules-livewire" to have custom modules)
Example use:,
I have created a module called "Dashboard" and I'm trying to load a custom module created in 'libraries' folder called "Chat" into the Dashboard Module. The 'Chat' module can access using its own route but I need to prevent it from accessing as a public route and only allow it to access within "Dashboard" module.
I have actually load the custom module using an iFrame with its route. It works as I expected. But the route is still can access publicly and need to prevent that.
So,
Beta Was this translation helpful? Give feedback.
All reactions