Skip to content

What if i don't want to use modules_statuses.json file? #1387

Discussion options

You must be logged in to vote

We have a feature to dynamically create custom modules with CRUD features in our app and we don't want to write modules_statuses.json file every time a new module is created. Is there any way to:

  1. Exclude this file and make all modules enabled by default ?
  2. Use database table instead of file to maintain module statuses?

Writing modules_statuses.json file is not a good idea for us because of mult-tenant architecture.

create custom base on Nwidart\Modules\Contracts\FileActivator and config modules.activators

    'activators' => [
        'file' => [
            'class' => FileActivator::class,
            'statuses-file' => base_path('modules_statuses.json'),
            'cache-key' => 'a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dcblogdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants