Skip to content

Releases: nWidart/laravel-modules

9.0.0

10 Feb 23:25
Compare
Choose a tag to compare

Changed

  • Minimum PHP version to 8.0 for supporting Laravel 9
  • Laravel 9 version
  • Increased PHPUnit to 9.5
  • Increased Mockery to 1.4
  • Fixed test replaced expectsEvents with event fakes

8.3.0

10 Feb 20:35
Compare
Choose a tag to compare

In the config there's a breaking change for existing config files (fresh published configs are okay)

To manually fix this import the commands class:

use Nwidart\Modules\Commands;

then update the commands array to prefix the command:

'commands' => [
        Commands\CommandMakeCommand::class,
        Commands\ComponentClassMakeCommand::class,
        Commands\ComponentViewMakeCommand::class,
        Commands\ControllerMakeCommand::class,
        Commands\DisableCommand::class,
        Commands\DumpCommand::class,
        Commands\EnableCommand::class,
        Commands\EventMakeCommand::class,
        Commands\JobMakeCommand::class,
        Commands\ListenerMakeCommand::class,
        Commands\MailMakeCommand::class,
        Commands\MiddlewareMakeCommand::class,
        Commands\NotificationMakeCommand::class,
        Commands\ProviderMakeCommand::class,
        Commands\RouteProviderMakeCommand::class,
        Commands\InstallCommand::class,
        Commands\ListCommand::class,
        Commands\ModuleDeleteCommand::class,
        Commands\ModuleMakeCommand::class,
        Commands\FactoryMakeCommand::class,
        Commands\PolicyMakeCommand::class,
        Commands\RequestMakeCommand::class,
        Commands\RuleMakeCommand::class,
        Commands\MigrateCommand::class,
        Commands\MigrateRefreshCommand::class,
        Commands\MigrateResetCommand::class,
        Commands\MigrateRollbackCommand::class,
        Commands\MigrateStatusCommand::class,
        Commands\MigrationMakeCommand::class,
        Commands\ModelMakeCommand::class,
        Commands\PublishCommand::class,
        Commands\PublishConfigurationCommand::class,
        Commands\PublishMigrationCommand::class,
        Commands\PublishTranslationCommand::class,
        Commands\SeedCommand::class,
        Commands\SeedMakeCommand::class,
        Commands\SetupCommand::class,
        Commands\UnUseCommand::class,
        Commands\UpdateCommand::class,
        Commands\UseCommand::class,
        Commands\ResourceMakeCommand::class,
        Commands\TestMakeCommand::class,
        Commands\LaravelModulesV6Migrator::class,
 ],

Fixed

  • The ability to override commands via config file.
  • Incorrectly placed config key
  • Class name when special characters are used in the rule name
  • Fix error on anonymous migration

Changed

  • Changed View/Component to View/Components
  • Updated test snapshots for the MakeCommand test snapshots
  • Command stub signature from signature to name
  • Revert PR1171 which causes tests to fail

Added

  • Added comands make class component and make view component
  • Test against php 8.0
  • Merge config in register method
  • Added optional controller flag to model generator command
  • Set module for make-controller command
  • Added tests for generating controller in model generator command
  • Added test for check if migration and controller flag are both present
  • Laravel mix v6 support

8.2.0

11 Nov 09:24
6ade5ec
Compare
Choose a tag to compare

Added

  • New module:make-component command to generate laravel components

Fixed

  • Fixed bug: Target class [Nwidart\Modules\Commands\] does not exist.

8.1.0

10 Nov 17:01
ae18f5a
Compare
Choose a tag to compare

Added

  • Command management via configuration file
  • Laravel 8 Factories compatibility
  • New improved way to define controller types. --web, --api and --plain options.
  • New configuration option to make compose run in silent mode

Changed

  • New generated commands now use the $signature property instead of $name
  • Fixed issue where order was used instead of priority

8.0.0

03 Oct 14:57
7983e41
Compare
Choose a tag to compare

Added

  • Laravel 8 support

Updated

  • Update ListenerMakeCommand to properly use the --events option

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