Skip to content

[Feature Request]: Advance Directory Modules #487

@moisish

Description

@moisish

Feature Description

Hello,

First of all, thank you for the great plugin.

On my project I have implemented my own modules structure which is similar to nwidart/laravel-modules but I have multiple levels under the \Modules namespace.

At the moment I am using the Simple Directory modules but that's not working very well for my case.
image

My modules structure can be like bellow:

modules/{moduleNameDir}
modules/{groupOfModules}/{moduleNameDir}
├── modules
|   ├── PlatformSettings
|   |   ├── Emails
|   |   |   |   Module.php
|   |   |   |
|   |   |   ├── Providers
|   |   |   |   |   ServiceProvider.php
|   |   |
|   |   ├── Notifications
|   |   |   |   Module.php
|   |   |   |
|   |   |   ├── Providers
|   |   |   |   |   ServiceProvider.php
|   |
|   ├── PlatformUsers
|   |   |   Module.php
|   |   |
|   |   ├── Providers
|   |   |   |   ServiceProvider.php

Is there anything I can do about?

I don't get any routes autocompletion for the modules and I am not sure if that's the problem or not.

The routes of the modules are included by a ServiceProvider

Route::namespace($module->getNamespace().'\App\Http\Controllers')->group($module->getRoutes());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions