Skip to content

Releases: nWidart/laravel-modules

7.3.0

10 Nov 17:07
5194d3c
Compare
Choose a tag to compare
Merge pull request #1045 from RezaT1994/master

Update create.stub

7.2.0

30 Jul 17:10
8980876
Compare
Choose a tag to compare

Added

  • Added return statements in artisan commands. Helpful to validate if something successfully ran. (#1026)

Changed

  • Update JsonResource namespace, using the new Illuminate\Http\Resources\Json\JsonResource. (#969)
  • Enable command returns the status code (#978)
  • Removing module service provider from composer.json stub (#996)
  • Fixed custom stub path issue. Replacing a hardcoded stub path. (#1016)
  • Controller return type changed to Illuminate\Contracts\Support\Renderable. (#1020)
  • Change bigIncrements method to id (#1029)
  • Adding force option for module:seed (#1030)

7.1.0

14 Apr 17:21
245426d
Compare
Choose a tag to compare

Changed

  • php artsian module:enable (without any arguments) will enable all modules
  • php artsian module:disable (without any arguments) will disable all modules
  • Updating Laravel Mix version as well as cross-env.

7.0.0

26 Mar 16:30
2262d43
Compare
Choose a tag to compare

Added

  • Laravel 7.0 support

6.2.0

12 Nov 18:39
6dc702e
Compare
Choose a tag to compare

Changed

  • Properly guessing the namespace from the path (in GeneratorPath class)
  • Fixing generation of resource file if the resource has been disabled to generate
  • Fix when using a custom service provider namespace, namespace is correctly referenced in module.json and compose.json
  • Fix when using custom service provider namespace, module path is correctly referenced in the RouteServiceProvider and ModuleServiceProvider
  • Fix when using a custom path for controllers in the controller stub

6.1.0

01 Nov 10:42
a3ec61c
Compare
Choose a tag to compare

Added

  • Added new module:delete command

Changed

  • Add optional path parameter to module_path helper (PR#861)
  • The default path of the module_statuses.json file has been moved to the Application's base path. This is to improve its visibility and the fact that it can be committed by default.
  • Throw an exception when no proper activator class was configured

6.0.0

19 Sep 08:33
6545caf
Compare
Choose a tag to compare

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

5.1.0

05 Sep 09:41
d4edc34
Compare
Choose a tag to compare

Changed

  • Replacing @stop with @endsection in the view stub file
  • Module class does not extend Laravel's Service Provider class anymore
  • Improve foreign key constraint generation

5.0.1

11 May 15:28
52e2e81
Compare
Choose a tag to compare

Added

  • artisan module:route-provider has a --force option to overwrite the existing file

Changed

  • Fixing the RouteServiceProvider generation to properly use the routes/web and routes/api stubs

5.0.0

18 Mar 17:56
88bac6d
Compare
Choose a tag to compare

Added

  • Laravel 5.8 support

Changed

  • Deprecated string and array methods have been replaced
  • Fixed caching not being cleared after disabling and enabling modules
  • Update Route Provider stub to not affect the root namespace of the URL generator (#727)

Removed

  • PHP 7.1 support