6.0.0
版本发布时间: 2019-09-19 16:33:58
nWidart/laravel-modules最新发布版本:v11.0.11(2024-06-17 15:45:29)
Added
-
New File Activator feature. PR #790 from @ryssbowh
This feature changes how modules are activated and de-activated. Currently module statuses are stored on disk, this features adds the possibility of storing this status information in a database.
Use the command
php artisan module:v6:migrate
to have old modules active status migrated to the new system.
Changed
-
Alternate way to define the namespace of modules in PR #776 by @daison12006013
This allows to have the content of the module under an
src/
folder for example. -
BREAKING New way to handle active and inactive modules.
Modules don't store their active status in their module.json file anymore, but in a file under the storage folder. Run
php artisan module:v6:migrate
to use the new system. -
BREAKING Renamed method
enabled
toisEnabled
in\Nwidart\Modules\Module
. -
BREAKING Renamed method
disabled
toisDisabled
in\Nwidart\Modules\Module
. -
BREAKING Renamed method
enabled
toisEnabled
in\Nwidart\Modules\FileRepository
. -
BREAKING Renamed method
disabled
toisDisabled
in\Nwidart\Modules\FileRepository
. -
BREAKING Removed the
__get
magic method on the\Nwidart\Modules\Module
class. Useget()
orjson()->get()
instead. -
The
module:make-listener
command now correctly uses the namespace configuration -
The generated Factories now has type hints for the
\Illuminate\Database\Eloquent\Factory
class -
Improved foreign key constraint generation
-
Exception handling in the
SeedCommand
has been improved