Releases: nWidart/laravel-modules
7.3.0
7.2.0
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
7.0.0
6.2.0
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
andModuleServiceProvider
- Fix when using a custom path for controllers in the controller stub
6.1.0
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
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.
Runphp 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