github nWidart/laravel-modules 6.0.0

latest releases: v11.1.2, v11.1.1, v11.1.0...
5 years ago

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 to isEnabled in \Nwidart\Modules\Module.

  • BREAKING Renamed method disabled to isDisabled in \Nwidart\Modules\Module.

  • BREAKING Renamed method enabled to isEnabled in \Nwidart\Modules\FileRepository.

  • BREAKING Renamed method disabled to isDisabled in \Nwidart\Modules\FileRepository.

  • BREAKING Removed the __get magic method on the \Nwidart\Modules\Module class. Use get() or json()->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

Don't miss a new laravel-modules release

NewReleases is sending notifications on new releases.