major updates

This commit is contained in:
Mark Gregory
2026-11-20 12:06:31 +00:00
parent 41cbe4714b
commit bfb3e25afe
104 changed files with 346 additions and 921 deletions
+1 -574
View File
@@ -1,578 +1,5 @@
# Changelog # Changelog
All Notable changes to `laravel-modules` will be documented in this file.
## Next
## 9.0.1 - 2025-05-07
- Added new generators for helper and also components
## 8.0 - 2020-10-03
### Added ### Added
- Laravel 8 support - Initial Design
### Updated
- Update `ListenerMakeCommand` to properly use the `--events` option
## 7.2.0 - 2020-07-30
### Added
- Added return statements in artisan commands. Helpful to validate if something was 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 - 2020-04-14
### 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 - 2020-03-26
### Added
- Laravel 7.0 support
## 6.2.0 - 2019-11-12
### 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 - 2019-11-01
### 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 - 2019-09-19
### Added
- New File Activator feature. [PR #790](https://github.com/nWidart/laravel-modules/pull/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](https://github.com/nWidart/laravel-modules/pull/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.0.1 - 2019-05-11
### Added
- `artisan module:route-provider` has a `--force` option to overwrite existing file
### Changed
- Fixing the `RouteServiceProvider` generation to properly use the `routes/web` and `routes/api` stubs
- Replacing `@stop` with `@endsection` in the view stub file
- `Module` class does not extend Laravel's Service Provider class anymore
## 5.0.0 - 2019-03-18
### 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**
## 4.1.0 - 2019-03-04
### Changed
- Updated to laravel mix 4
- Add `--api` argument to `module:make-controller` command
- Seeding modules outside out `Modules` namespace
## 4.0.0 - 2018-09-30
### Added
- New way of handling routes by default using a RouteServiceProvider (instead of start.php)
- Laravel 5.7 support
### Changed
- Allow class resolution on short name and abstract
- `module:seed` accepts a `--class` option
## 3.3.1 - 2018-07-13
### Changed
- Added the ability to set a sub-namespace to controllers `module:make-controller Api\\TestController`
## 3.3.0 - 2018-06-21
### Changed
- `module:update` command has now the possibility to update all modules at once
- Fixing commented code for Laravel Mix
## 3.2.0 - 2018-04-16
### Added
- Added possibility to update all modules at once if any not specified (PR #523)
### Changed
- Mix: Fix css relative urls by changing the route folder (PR #521)
- Mix: Prevents every build from deleting previous Mix config file (PR #521)
## 3.1.0 - 2018-04-01
### Added
- Laravel mix configuration (https://nwidart.com/laravel-modules/v3/basic-usage/compiling-assets)
### Changed
- Allow symlinks in module path
- Returns the parameter `--class` to the `SeedCommand`.
- Generate folders recursively
- Removing link that has become a 404
- Fixed seed command exception typehint
### Removed
- Removed the optimize command on the `module:make-migration` command
## 3.0.1 - 2018-02-16
### Changed
- Update publish commands to use the new API to get all enabled modules (PR #483 )
## 3.0.0 - 2018-02-14
## Added
- Added support for laravel 5.6
- Using phpunit 7
## Changed
- **BC:** `Repository` class: renamed `enabled` to `allEnabled`
- **BC:** `Repository` class: renamed `disabled` to `allDisabled`
- **BC:** `Repository` class: renamed `active` to `enabled`
- **BC:** `Repository` class: renamed `notActive` to `disabled`
## Removed
- Dropped php 7.0 support
- **BC:** `Module` class: Deprecated `active()` method, use `enabled()`
- **BC:** `Module` class: Deprecated `notActive()` method, use `disabled()`
- **BC:** `Repository` class: Deprecated `addPath()` method, use `addLocation()`
- **BC:** `Repository` class: Deprecated `get()` method, use `find()`
- **BC:** `Repository` class: Deprecated `getUsed()` method, use `getUsedNow()`
## 2.7.0 - 2018-01-13
## Changed
- Rename the `before` method to `boot` in the `RouterServiceProvider` stub file
- Fixing caching issue if modules were loaded from a different directory
- Fixing how modules are loaded from vendor directory (#423 #417)
- Update to Mockery 1.0
- use default file stubs only if override does not exists
- Fix non well formed numeric value in seed command
## 2.6.0 - 2017-11-07
## Added
- Ability to customise the destination folder & namespace of a generated class
- Added `php artisan module:migrate-status` command
- `config_path()` helper for Lumen
- Added views tag to view config in ServiceProvider
- added package auto discovery for laravel 5.5 in generated module `composer.json`
## Changed
- Adding the ability to correctly load modules from multiple locations, together
- Custom seeder path now also used in the `module:seed` command
## 2.5.1 - 2017-10-13
## Changed
- added config_path helper to helpers for Lumen support
- updated readme on how to install laravel-modules in Lumen
## 2.5.0 - 2017-10-03
## Changed
- Making the path to migrations for `loadMigrationsFrom()` call dynamic based of configuration
- Making the factory path dynamic for master service provider & make-factory command
- Make the route file location dynamic in start.php based of `stubs.files.routes`
- Making the route path dynamic on the route service provider based of `stubs.files.routes`
- New structure in configuration to set which folders will be generated on `module:make` (old format still supported)
- Setting new sensible defaults to what folders to generate by default.
- Change the assets directory default location `resources/assets`
## 2.4.1 - 2017-09-27
## Changed
- Setting a default value for `modules.paths.modules` configuration key
## 2.4.0 - 2017-09-27
## Added
- New `module:make-resource` command to generate resource classes
- New `module:make-test` command to generate test classes
## Changed
- Improved error output of the `module:seed` command
- Marking methods that served as proxies in `Module` and `Repository` classes as deprecated for next major
- Fixed `module:make` and `module:make-provider` to generate the correct master service provider
- Tests: tests are now using `spatie/phpunit-snapshot-assertions` to make sure the generated files have the correct content
- Adding a sync option to the `module:make-job` command to make a synchronous job class
- Changed `module:make-event` command to allow duck typed events (not type hinted event class)
- Changed `module:make-listener` to allow a `--queued` option to make the event queueable
- Changed `module:make-listener` command to not use the full class typehint when class was previous imported
## 2.3.0 - 2017-09-26
## Added
- Ability to ignore some folders to generate
- Creating an module:unuse command to forget the previously saved module
- New command to generate Policy classes
- New command for creating factories
- New command for creating rules
- new `public_path` helper for Lumen
## Changed
- Refactored class names that generate something to be fully consistent
## 2.2.1 - 2017-09-14
## Changed
- Fixed class namespace to `Repository` in `ContractsServiceProvider`
## 2.2.0 - 2017-09-14
### Added
- Lumen compatibility with new way to register providers
## 2.1.0 - 2017-09-10
### Changed
- Register module migrations
- Fixed issue with `module:migrate-refresh` command
- Improved module loading of their service providers. Using laravel caching system. Allowing usage of deferred providers.
- Fixed path to module factories
## 2.0.0 - 2017-08-31
### Added
- Support Laravel 5.5
## 1.27.2 - 2017-08-29
### Changed
- Allow migrate-refresh command to be run without module argument
- Module name was added to the module enable and disable events
## 1.27.1 - 2017-07-31
### Changed
- Only run composer require on the module:update command if there's something to require
- Fixing lumen support
## 1.27.0 - 2017-07-19
### Added
- Laravel Lumen support
### Changed
- Update dev dependencies grumphp and phpcsfixer to latest versions
- The `make:model` command with the `-m` flag to create the associated migration is now using a current migration file name
## 1.26.0 - 2017-07-06
### Changed
- Throw an exception if asset name structure was not correct when using `{!! Module::asset() !!}`
- Create the module used file if non existent. Will provide for a better error message if module is omitted in console commands without a module:use.
## 1.25.1 - 2017-06-29
### Changed
- More flexibility to the `json()` method, while keeping the performance improvements.
## 1.25.0 - 2017-06-29
### Changed
- Improving performance by only instantiating Json class for the module.json file once
- Added support for generic git hosts
## 1.24.0 - 2017-06-12
### Changed
- Using `resource_path` to register module views
- Changed the method to load additional eloquent factory paths
## 1.23.0 - 2017-06-09
## Added
- A `--migration` flag to the `module:make-model` command to generate the migration file with a model
- Factories are now also defined in the master service providers. This is used in the `module:make` command without the `--plain` flag, or using `module:make-provider` with the `--master` flag.
- `module_path()` helper function.
### Changed
- The default location of event listeners is now in `Listeners/`, from `Events/Handlers`
## 1.22.0 - 2017-05-22
### Changed
- Fixed the `--plain` on the `make:module` command, to not include a service provider in the `module.json` file as it's not generated.
- Add command description to the `GenerateNotificationCommand`.
## 1.21.0 - 2017-05-10
### Added
- Added the `Macroable` trait to the `Module` class.
### Changed
- The `collections` method now accepts an optional parameter to get modules by status, in a laravel collection.
- Allow laravel `5.5.*` to be used.
## 1.20.0 - 2017-04-19
### Changed
- `module:update`: Copy over the scripts key to main composer.json file
- Add a `--subpath` option to migrate command
- `module:update`: Install / require all require & require-dev package at once, instead of multiple calls to composer require.
- `module:publish-config` command now uses the namespace set up in the configuration file.
## 1.19.0 - 2017-03-16
### Changed
- `module:update` command now also takes the `require-dev` key into account
- Making the `$migrations` parameter optional on `getLastBatchNumber()`
## 1.18.0 - 2017-03-13
### Changed
- The module list command (`module:list`) now returns the native module name
## 1.17.1 - 2017-03-02
### Changed
- Fixed issues with route file location in `start.php`
## 1.17.0 - 2017-02-27
### Changed
- Add checking for failure to parse module JSON
## 1.16.0 - 2017-01-24
### Added
- Support for Laravel 5.4
- Adding show method on resource controller
- Added check for cached routes to not load them multiple times
## 1.15.0 - 2017-01-12
### Added
- Module requirements (PR #117)
- Added `Macroable` trait to `Module` class (PR #116)
### Changed
- Added missing import of the `Schema` facade on migration stubs
- A default plain migration will be used if the name was not matched against a predefined structure (create, add, delete and drop)
- Add tests for all the different migration structures above
- Fix: respecting order in reverse migrations (PR #98)
- Fix: `module:reset` and `module:migrate-rollback` didn't have `--database` option (PR #88)
- Fix: `Module::asset()`, removed obsolete backslash. (PR #91)
## 1.14.0 - 2016-10-19
### Added
- `module:make-notification` command to generate a notification class
### Changed
- Usage of the `lists()` method on the laravel collection has been removed in favor of `pluck()`
- Modules can now overwrite the default migration and seed paths in the `module.json` file
## 0.13.1 - 2016-09-09
### Changed
- Generated emails are now generated in the `Emails` folder by default
## 0.13.0 - 2016-09-08
### Changed
- Ability to set default value on the config() method of a module.
- Mail: Setting default value to config. Using that as the namespace.
- Using PSR2 for generated stubs
## 0.12.0 - 2016-09-08
### Added
- Generation of Mailable classes
## 0.11.2 - 2016-08-29
### Changed
- Using stable version of laravelcollective/html (5.3)
## 0.11.1 - 2016-08-25
### Changed
- Using stable development of laravelcollective/html
## 0.11 - 2016-08-24
### Added
- Adding `module:make-job` command to generate a job class
- Adding support for Laravel 5.3
### Changed
- Added force option to module:seed command
## 0.10 - 2016-08-10
### Added
- Experimental Laravel 5.3 support
### Changed
- Make sure the class name has `Controller` appended to it as well. Previously only the file had it suffixed.
### Removed
- Dependencies: `pingpong/support` and `pingpong/generators`
## 0.9 - 2016-07-30
### Added
- Adding a plain option to the generate controller command
### Changed
- Generate controller command now generates all resource methods
## 0.8 - 2016-07-28
### Fixed
- Module generation namespace now works with `StudlyCase` ([Issue #14](https://github.com/nWidart/laravel-modules/issues/14))
- No module namespace fix (#13)
### Changed
- Using new service provider stub for module generation too
## 0.1 - 2016-06-27
Initial release
## 2026-07-01 - Module Control Administration Enhancements
- Added professional module control dashboard cards for installed, enabled, disabled, updates available, and missing dependency states.
- Added searchable, sortable, paginated module index with database-only descriptions, version metadata, icons, categories, vendor type, author and last-updated details.
- Added filter support for all, enabled, disabled, core, optional, MPBA, third-party, updates, and missing dependencies.
- Added bulk enable/disable actions with dependency safety checks.
- Added module detail developer cards for dependencies, dependents, README, changelog, routes, migrations, models, controllers, providers and package metadata.
- Added module_statuses metadata columns for icon, category, vendor type, author and notes.
+2 -2
View File
@@ -1,8 +1,8 @@
# The MIT License (MIT) # The MIT License (MIT)
Copyright (c) 2014 Pingpong Labs Copyright (c) 2026 Abbey Software Development Limited
Copyright (c) 2026 Mark Gregory <mark.gregory@mpba.co.uk> Copyright (c) 2026 Mark Gregory <mark.gregory@absev.net>
> Permission is hereby granted, free of charge, to any person obtaining a copy > Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal > of this software and associated documentation files (the "Software"), to deal
+2 -2
View File
@@ -73,9 +73,9 @@ By default, the module classes are not loaded automatically. You can autoload yo
- [gravitano](https://github.com/gravitano) - [gravitano](https://github.com/gravitano)
- [All Contributors](../../contributors) - [All Contributors](../../contributors)
## About Nicolas Widart ## Mark Gregory
Nicolas Widart is a freelance web developer specialising on the Laravel framework. View all my packages [on my website](https://nwidart.com/), or visit [my website](https://nicolaswidart.com). Mark Gregory is a freelance web developer specialising on the Laravel framework and Apple Application Development. visit [my website](https://absdev.net).
## License ## License
+7 -9
View File
@@ -1,20 +1,18 @@
{ {
"name": "mpba/laravel-modules", "name": "absdev/laravel-modules",
"description": "Laravel Module management", "description": "Laravel Module Management",
"version":"13.0.0", "version":"1.0.0",
"keywords": [ "keywords": [
"modules", "modules",
"laravel", "laravel",
"mpba",
"module",
"rad" "rad"
], ],
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
{ {
"name": "Mark Gregory", "name": "Mark Gregory",
"email": "mark.gregory@mpba.co.uk", "email": "mark.gregory@absdev.net",
"homepage": "https://mpba.co.uk", "homepage": "https://absdev.net",
"role": "Developer" "role": "Developer"
} }
], ],
@@ -48,10 +46,10 @@
"extra": { "extra": {
"laravel": { "laravel": {
"providers": [ "providers": [
"mpba\\Modules\\LaravelModulesServiceProvider" "absev\\Modules\\LaravelModulesServiceProvider"
], ],
"aliases": { "aliases": {
"Module": "mpba\\Modules\\Facades\\Module" "Module": "absdev\\Modules\\Facades\\Module"
} }
}, },
"branch-alias": { "branch-alias": {
+4 -4
View File
@@ -1,7 +1,7 @@
<?php <?php
use mpba\Modules\Activators\DatabaseActivator; use absdev\Modules\Activators\DatabaseActivator;
use mpba\Modules\Activators\FileActivator; use absdev\Modules\Activators\FileActivator;
return [ return [
@@ -28,7 +28,7 @@ return [
'stubs' => [ 'stubs' => [
'enabled' => false, 'enabled' => false,
'path' => base_path() . '/Vendors/mpba/laravel-modules/src/Commands/stubs', 'path' => base_path() . '/Vendors/absdev/laravel-modules/src/Commands/stubs',
'files' => [ 'files' => [
'routes/web' => 'Routes/web.php', 'routes/web' => 'Routes/web.php',
'routes/api' => 'Routes/api.php', 'routes/api' => 'Routes/api.php',
@@ -163,7 +163,7 @@ return [
'Vendors' => 'mpba', 'Vendors' => 'mpba',
'author' => [ 'author' => [
'name' => 'Mark Gregory', 'name' => 'Mark Gregory',
'email' => 'mark.gregory@mpba.co.uk', 'email' => 'mark.gregory@absdev.net',
], ],
], ],
/* /*
+3 -3
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Activators; namespace absdev\Modules\Activators;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
use mpba\Modules\Contracts\ActivatorInterface; use absdev\Modules\Contracts\ActivatorInterface;
use mpba\Modules\Module; use absdev\Modules\Module;
class DatabaseActivator implements ActivatorInterface class DatabaseActivator implements ActivatorInterface
{ {
+3 -3
View File
@@ -1,14 +1,14 @@
<?php <?php
namespace mpba\Modules\Activators; namespace absdev\Modules\Activators;
use Illuminate\Cache\CacheManager; use Illuminate\Cache\CacheManager;
use Illuminate\Config\Repository as Config; use Illuminate\Config\Repository as Config;
use Illuminate\Container\Container; use Illuminate\Container\Container;
use Illuminate\Contracts\Filesystem\FileNotFoundException; use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use mpba\Modules\Contracts\ActivatorInterface; use absdev\Modules\Contracts\ActivatorInterface;
use mpba\Modules\Module; use absdev\Modules\Module;
class FileActivator implements ActivatorInterface class FileActivator implements ActivatorInterface
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules; namespace absdev\Modules;
use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Collection as BaseCollection; use Illuminate\Support\Collection as BaseCollection;
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,13 +1,13 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Contracts\Filesystem\FileNotFoundException; use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+2 -2
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Module; use absdev\Modules\Module;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class DisableCommand extends Command class DisableCommand extends Command
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
+2 -2
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Module; use absdev\Modules\Module;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class EnableCommand extends Command class EnableCommand extends Command
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class EventMakeCommand extends GeneratorCommand class EventMakeCommand extends GeneratorCommand
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class FactoryMakeCommand extends GeneratorCommand class FactoryMakeCommand extends GeneratorCommand
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Exceptions\FileAlreadyExistException; use absdev\Modules\Exceptions\FileAlreadyExistException;
use mpba\Modules\Generators\FileGenerator; use absdev\Modules\Generators\FileGenerator;
use mpba\Modules\Module; use absdev\Modules\Module;
abstract class GeneratorCommand extends Command abstract class GeneratorCommand extends Command
{ {
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+3 -3
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Json; use absdev\Modules\Json;
use mpba\Modules\Process\Installer; use absdev\Modules\Process\Installer;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+2 -2
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Module; use absdev\Modules\Module;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
class ListCommand extends Command class ListCommand extends Command
+5 -5
View File
@@ -1,12 +1,12 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Module; use absdev\Modules\Module;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class MailMakeCommand extends GeneratorCommand class MailMakeCommand extends GeneratorCommand
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class MiddlewareMakeCommand extends GeneratorCommand class MiddlewareMakeCommand extends GeneratorCommand
+4 -4
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Migrations\Migrator; use absdev\Modules\Migrations\Migrator;
use mpba\Modules\Module; use absdev\Modules\Module;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
@@ -25,7 +25,7 @@ class MigrateCommand extends Command
protected $description = 'Migrate the migrations from the specified module or from all modules.'; protected $description = 'Migrate the migrations from the specified module or from all modules.';
/** /**
* @var mpba\Modules\Contracts\RepositoryInterface * @var absdev\Modules\Contracts\RepositoryInterface
*/ */
protected $module; protected $module;
+2 -2
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Migrations\Migrator; use absdev\Modules\Migrations\Migrator;
use mpba\Modules\Traits\MigrationLoaderTrait; use absdev\Modules\Traits\MigrationLoaderTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
@@ -27,7 +27,7 @@ class MigrateResetCommand extends Command
protected $description = 'Reset the modules migrations.'; protected $description = 'Reset the modules migrations.';
/** /**
* @var mpba\Modules\Contracts\RepositoryInterface * @var absdev\Modules\Contracts\RepositoryInterface
*/ */
protected $module; protected $module;
+4 -4
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Migrations\Migrator; use absdev\Modules\Migrations\Migrator;
use mpba\Modules\Traits\MigrationLoaderTrait; use absdev\Modules\Traits\MigrationLoaderTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
@@ -27,7 +27,7 @@ class MigrateRollbackCommand extends Command
protected $description = 'Rollback the modules migrations.'; protected $description = 'Rollback the modules migrations.';
/** /**
* @var mpba\Modules\Contracts\RepositoryInterface * @var absdev\Modules\Contracts\RepositoryInterface
*/ */
protected $module; protected $module;
+4 -4
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Migrations\Migrator; use absdev\Modules\Migrations\Migrator;
use mpba\Modules\Module; use absdev\Modules\Module;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
@@ -25,7 +25,7 @@ class MigrateStatusCommand extends Command
protected $description = 'Status for all module migrations'; protected $description = 'Status for all module migrations';
/** /**
* @var mpba\Modules\Contracts\RepositoryInterface * @var absdev\Modules\Contracts\RepositoryInterface
*/ */
protected $module; protected $module;
+6 -6
View File
@@ -1,13 +1,13 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Migrations\NameParser; use absdev\Modules\Support\Migrations\NameParser;
use mpba\Modules\Support\Migrations\SchemaParser; use absdev\Modules\Support\Migrations\SchemaParser;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
+3 -3
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Contracts\ActivatorInterface; use absdev\Modules\Contracts\ActivatorInterface;
use mpba\Modules\Generators\ModuleGenerator; use absdev\Modules\Generators\ModuleGenerator;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
final class NotificationMakeCommand extends GeneratorCommand final class NotificationMakeCommand extends GeneratorCommand
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class PolicyMakeCommand extends GeneratorCommand class PolicyMakeCommand extends GeneratorCommand
+5 -5
View File
@@ -1,12 +1,12 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Module; use absdev\Modules\Module;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+3 -3
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Module; use absdev\Modules\Module;
use mpba\Modules\Publishing\AssetPublisher; use absdev\Modules\Publishing\AssetPublisher;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class PublishCommand extends Command class PublishCommand extends Command
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Str; use Illuminate\Support\Str;
+4 -4
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Migrations\Migrator; use absdev\Modules\Migrations\Migrator;
use mpba\Modules\Publishing\MigrationPublisher; use absdev\Modules\Publishing\MigrationPublisher;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class PublishMigrationCommand extends Command class PublishMigrationCommand extends Command
@@ -46,7 +46,7 @@ class PublishMigrationCommand extends Command
/** /**
* Publish migration for the specified module. * Publish migration for the specified module.
* *
* @param \mpba\Modules\Module $module * @param \absdev\Modules\Module $module
*/ */
public function publish($module) public function publish($module)
{ {
+3 -3
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Module; use absdev\Modules\Module;
use mpba\Modules\Publishing\LangPublisher; use absdev\Modules\Publishing\LangPublisher;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class PublishTranslationCommand extends Command class PublishTranslationCommand extends Command
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class RequestMakeCommand extends GeneratorCommand class RequestMakeCommand extends GeneratorCommand
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class RuleMakeCommand extends GeneratorCommand class RuleMakeCommand extends GeneratorCommand
+5 -5
View File
@@ -1,15 +1,15 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use ErrorException; use ErrorException;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\Module; use absdev\Modules\Module;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use RuntimeException; use RuntimeException;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+5 -5
View File
@@ -1,12 +1,12 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\CanClearModulesCache; use absdev\Modules\Traits\CanClearModulesCache;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
+5 -5
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
@@ -82,7 +82,7 @@ class SupportMakeCommand extends GeneratorCommand
/** /**
* Get class namespace. * Get class namespace.
* *
* @param \mpba\Modules\Module $module * @param \absdev\Modules\Module $module
* @return string * @return string
*/ */
public function getClassNamespace($module) public function getClassNamespace($module)
+2 -2
View File
@@ -2,12 +2,12 @@
declare(strict_types=1); declare(strict_types=1);
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\File;
use mpba\Modules\DevelopmentSupport\Entities\ModuleStatus; use absdev\Modules\DevelopmentSupport\Entities\ModuleStatus;
/** /**
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class TraitMakeCommand extends GeneratorCommand class TraitMakeCommand extends GeneratorCommand
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
+3 -3
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use mpba\Modules\Traits\ModuleCommandTrait; use absdev\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
class UpdateCommand extends Command class UpdateCommand extends Command
@@ -37,7 +37,7 @@ class UpdateCommand extends Command
return 0; return 0;
} }
/** @var \mpba\Modules\Module $module */ /** @var \absdev\Modules\Module $module */
foreach ($this->laravel['modules']->getOrdered() as $module) { foreach ($this->laravel['modules']->getOrdered() as $module) {
$this->updateModule($module->getName()); $this->updateModule($module->getName());
} }
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Commands; namespace absdev\Modules\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Str; use Illuminate\Support\Str;
+2 -2
View File
@@ -1,8 +1,8 @@
<?php <?php
namespace mpba\Modules\Contracts; namespace absdev\Modules\Contracts;
use mpba\Modules\Module; use absdev\Modules\Module;
interface ActivatorInterface interface ActivatorInterface
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Contracts; namespace absdev\Modules\Contracts;
interface PublisherInterface interface PublisherInterface
{ {
+4 -4
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Contracts; namespace absdev\Modules\Contracts;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use mpba\Modules\Collection; use absdev\Modules\Collection;
use mpba\Modules\Exceptions\ModuleNotFoundException; use absdev\Modules\Exceptions\ModuleNotFoundException;
use mpba\Modules\Module; use absdev\Modules\Module;
interface RepositoryInterface interface RepositoryInterface
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Contracts; namespace absdev\Modules\Contracts;
interface RunableInterface interface RunableInterface
{ {
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace mpba\Modules\DevelopmentSupport\Entities; namespace absdev\Modules\DevelopmentSupport\Entities;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
namespace mpba\Modules\Exceptions; namespace absdev\Modules\Exceptions;
class FileAlreadyExistException extends \Exception {} class FileAlreadyExistException extends \Exception {}
+2 -2
View File
@@ -1,11 +1,11 @@
<?php <?php
namespace mpba\Modules\Exceptions; namespace absdev\Modules\Exceptions;
class InvalidActivatorClass extends \Exception class InvalidActivatorClass extends \Exception
{ {
public static function missingConfig() public static function missingConfig()
{ {
return new static("You don't have a valid activator configuration class. This might be due to your config being out of date. \n Run php artisan Vendors:publish --provider=\"mpba\Modules\LaravelModulesServiceProvider\" --force to publish the up to date configuration"); return new static("You don't have a valid activator configuration class. This might be due to your config being out of date. \n Run php artisan Vendors:publish --provider=\"absdev\Modules\LaravelModulesServiceProvider\" --force to publish the up to date configuration");
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Exceptions; namespace absdev\Modules\Exceptions;
class InvalidAssetPath extends \Exception class InvalidAssetPath extends \Exception
{ {
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
namespace mpba\Modules\Exceptions; namespace absdev\Modules\Exceptions;
class InvalidJsonException extends \Exception {} class InvalidJsonException extends \Exception {}
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
namespace mpba\Modules\Exceptions; namespace absdev\Modules\Exceptions;
class ModuleNotFoundException extends \Exception {} class ModuleNotFoundException extends \Exception {}
+4 -4
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Facades; namespace absdev\Modules\Facades;
use Illuminate\Support\Facades\Facade; use Illuminate\Support\Facades\Facade;
@@ -10,15 +10,15 @@ class Module extends Facade
* @method static array all() * @method static array all()
* @method static array getCached() * @method static array getCached()
* @method static array scan() * @method static array scan()
* @method static \mpba\Modules\Collection toCollection() * @method static \absdev\Modules\Collection toCollection()
* @method static array getScanPaths() * @method static array getScanPaths()
* @method static array allEnabled() * @method static array allEnabled()
* @method static array allDisabled() * @method static array allDisabled()
* @method static int count() * @method static int count()
* @method static array getOrdered($direction = 'asc') * @method static array getOrdered($direction = 'asc')
* @method static array getByStatus($status) * @method static array getByStatus($status)
* @method static \mpba\Modules\Module find(string $name) * @method static \absdev\Modules\Module find(string $name)
* @method static \mpba\Modules\Module findOrFail(string $name) * @method static \absdev\Modules\Module findOrFail(string $name)
* @method static string getModulePath($moduleName) * @method static string getModulePath($moduleName)
* @method static \Illuminate\Filesystem\Filesystem getFiles() * @method static \Illuminate\Filesystem\Filesystem getFiles()
* @method static mixed config(string $key, $default = NULL) * @method static mixed config(string $key, $default = NULL)
+10 -10
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules; namespace absdev\Modules;
use Countable; use Countable;
use Illuminate\Cache\CacheManager; use Illuminate\Cache\CacheManager;
@@ -11,11 +11,11 @@ use Illuminate\Contracts\Routing\UrlGenerator;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\Support\Traits\Macroable; use Illuminate\Support\Traits\Macroable;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\Exceptions\InvalidAssetPath; use absdev\Modules\Exceptions\InvalidAssetPath;
use mpba\Modules\Exceptions\ModuleNotFoundException; use absdev\Modules\Exceptions\ModuleNotFoundException;
use mpba\Modules\Process\Installer; use absdev\Modules\Process\Installer;
use mpba\Modules\Process\Updater; use absdev\Modules\Process\Updater;
abstract class FileRepository implements Countable, RepositoryInterface abstract class FileRepository implements Countable, RepositoryInterface
{ {
@@ -129,7 +129,7 @@ abstract class FileRepository implements Countable, RepositoryInterface
* @param Container $app * @param Container $app
* @param string $args * @param string $args
* @param string $path * @param string $path
* @return \mpba\Modules\Module * @return \absdev\Modules\Module
*/ */
abstract protected function createModule(...$args); abstract protected function createModule(...$args);
@@ -453,7 +453,7 @@ abstract class FileRepository implements Countable, RepositoryInterface
/** /**
* Get module used for cli session. * Get module used for cli session.
* *
* @throws \mpba\Modules\Exceptions\ModuleNotFoundException * @throws \absdev\Modules\Exceptions\ModuleNotFoundException
*/ */
public function getUsedNow(): string public function getUsedNow(): string
{ {
@@ -519,7 +519,7 @@ abstract class FileRepository implements Countable, RepositoryInterface
* @param string $name * @param string $name
* @return void * @return void
* *
* @throws \mpba\Modules\Exceptions\ModuleNotFoundException * @throws \absdev\Modules\Exceptions\ModuleNotFoundException
*/ */
public function enable($name) public function enable($name)
{ {
@@ -532,7 +532,7 @@ abstract class FileRepository implements Countable, RepositoryInterface
* @param string $name * @param string $name
* @return void * @return void
* *
* @throws \mpba\Modules\Exceptions\ModuleNotFoundException * @throws \absdev\Modules\Exceptions\ModuleNotFoundException
*/ */
public function disable($name) public function disable($name)
{ {
+2 -2
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Generators; namespace absdev\Modules\Generators;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use mpba\Modules\Exceptions\FileAlreadyExistException; use absdev\Modules\Exceptions\FileAlreadyExistException;
class FileGenerator extends Generator class FileGenerator extends Generator
{ {
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
namespace mpba\Modules\Generators; namespace absdev\Modules\Generators;
abstract class Generator {} abstract class Generator {}
+6 -6
View File
@@ -1,16 +1,16 @@
<?php <?php
namespace mpba\Modules\Generators; namespace absdev\Modules\Generators;
use Illuminate\Config\Repository as Config; use Illuminate\Config\Repository as Config;
use Illuminate\Console\Command as Console; use Illuminate\Console\Command as Console;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Contracts\ActivatorInterface; use absdev\Modules\Contracts\ActivatorInterface;
use mpba\Modules\FileRepository; use absdev\Modules\FileRepository;
use mpba\Modules\Module; use absdev\Modules\Module;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
class ModuleGenerator extends Generator class ModuleGenerator extends Generator
{ {
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Http\Controllers; namespace absdev\Modules\Http\Controllers;
use Illuminate\Http\RedirectResponse; use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request; use Illuminate\Http\Request;
@@ -8,7 +8,7 @@ use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Routing\Controller; use Illuminate\Routing\Controller;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\View\View; use Illuminate\View\View;
use mpba\Modules\Support\DatabaseModuleRegistry; use absdev\Modules\Support\DatabaseModuleRegistry;
use RuntimeException; use RuntimeException;
class ModuleControlController extends Controller class ModuleControlController extends Controller
@@ -21,7 +21,7 @@ class ModuleControlController extends Controller
{ {
$search = trim((string) $request->query('search', '')); $search = trim((string) $request->query('search', ''));
$filter = (string) $request->query('filter', $request->query('status', 'all')); $filter = (string) $request->query('filter', $request->query('status', 'all'));
$filter = in_array($filter, ['all', 'enabled', 'disabled', 'core', 'optional', 'mpba', 'third-party', 'updates', 'missing-dependencies'], true) ? $filter : 'all'; $filter = in_array($filter, ['all', 'enabled', 'disabled', 'core', 'optional', 'absdev', 'third-party', 'updates', 'missing-dependencies'], true) ? $filter : 'all';
$sort = (string) $request->query('sort', 'order'); $sort = (string) $request->query('sort', 'order');
$sort = in_array($sort, ['order', 'name', 'status', 'version', 'updated'], true) ? $sort : 'order'; $sort = in_array($sort, ['order', 'name', 'status', 'version', 'updated'], true) ? $sort : 'order';
$perPage = 4; $perPage = 4;
@@ -156,7 +156,7 @@ class ModuleControlController extends Controller
'disabled' => $modules->where('enabled', false)->values(), 'disabled' => $modules->where('enabled', false)->values(),
'core' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['category'], 'Core') === 0)->values(), 'core' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['category'], 'Core') === 0)->values(),
'optional' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['category'], 'Optional') === 0)->values(), 'optional' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['category'], 'Optional') === 0)->values(),
'mpba' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['vendor_type'], 'MPBA') === 0)->values(), 'absdev' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['vendor_type'], 'absdev') === 0)->values(),
'third-party' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['vendor_type'], 'Third-party') === 0)->values(), 'third-party' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['vendor_type'], 'Third-party') === 0)->values(),
'updates' => $modules->where('has_update', true)->values(), 'updates' => $modules->where('has_update', true)->values(),
'missing-dependencies' => $modules->where('has_missing_dependencies', true)->values(), 'missing-dependencies' => $modules->where('has_missing_dependencies', true)->values(),
@@ -188,7 +188,7 @@ class ModuleControlController extends Controller
'missing' => $modules->where('has_missing_dependencies', true)->count(), 'missing' => $modules->where('has_missing_dependencies', true)->count(),
'core' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['category'], 'Core') === 0)->count(), 'core' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['category'], 'Core') === 0)->count(),
'optional' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['category'], 'Optional') === 0)->count(), 'optional' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['category'], 'Optional') === 0)->count(),
'mpba' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['vendor_type'], 'MPBA') === 0)->count(), 'absdev' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['vendor_type'], 'absdev') === 0)->count(),
'third_party' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['vendor_type'], 'Third-party') === 0)->count(), 'third_party' => $modules->filter(fn (array $module): bool => strcasecmp((string) $module['vendor_type'], 'Third-party') === 0)->count(),
]; ];
} }
+2 -2
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules; namespace absdev\Modules;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use \Illuminate\Support\Collection; use \Illuminate\Support\Collection;
use mpba\Modules\Exceptions\InvalidJsonException; use absdev\Modules\Exceptions\InvalidJsonException;
class Json class Json
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
<?php <?php
namespace mpba\Modules\Laravel; namespace absdev\Modules\Laravel;
use mpba\Modules\FileRepository; use absdev\Modules\FileRepository;
class LaravelFileRepository extends FileRepository class LaravelFileRepository extends FileRepository
{ {
+2 -2
View File
@@ -1,12 +1,12 @@
<?php <?php
namespace mpba\Modules\Laravel; namespace absdev\Modules\Laravel;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\AliasLoader; use Illuminate\Foundation\AliasLoader;
use Illuminate\Foundation\ProviderRepository; use Illuminate\Foundation\ProviderRepository;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Module as BaseModule; use absdev\Modules\Module as BaseModule;
class Module extends BaseModule class Module extends BaseModule
{ {
+5 -5
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules; namespace absdev\Modules;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\Exceptions\InvalidActivatorClass; use absdev\Modules\Exceptions\InvalidActivatorClass;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
class LaravelModulesServiceProvider extends ModulesServiceProvider class LaravelModulesServiceProvider extends ModulesServiceProvider
{ {
@@ -41,7 +41,7 @@ class LaravelModulesServiceProvider extends ModulesServiceProvider
$this->setupStubPath(); $this->setupStubPath();
$this->registerProviders(); $this->registerProviders();
$this->app->singleton(\mpba\Modules\Support\DatabaseModuleRegistry::class); $this->app->singleton(\absdev\Modules\Support\DatabaseModuleRegistry::class);
} }
/** /**
+2 -2
View File
@@ -1,8 +1,8 @@
<?php <?php
namespace mpba\Modules\Lumen; namespace absdev\Modules\Lumen;
use mpba\Modules\FileRepository; use absdev\Modules\FileRepository;
class LumenFileRepository extends FileRepository class LumenFileRepository extends FileRepository
{ {
+2 -2
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Lumen; namespace absdev\Modules\Lumen;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Module as BaseModule; use absdev\Modules\Module as BaseModule;
class Module extends BaseModule class Module extends BaseModule
{ {
+3 -3
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules; namespace absdev\Modules;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\Support\Stub; use absdev\Modules\Support\Stub;
class LumenModulesServiceProvider extends ModulesServiceProvider class LumenModulesServiceProvider extends ModulesServiceProvider
{ {
+3 -3
View File
@@ -1,12 +1,12 @@
<?php <?php
namespace mpba\Modules\Migrations; namespace absdev\Modules\Migrations;
use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Module; use absdev\Modules\Module;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
class Migrator class Migrator
{ {
+4 -4
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules; namespace absdev\Modules;
use Illuminate\Cache\CacheManager; use Illuminate\Cache\CacheManager;
use Illuminate\Container\Container; use Illuminate\Container\Container;
@@ -10,7 +10,7 @@ use Illuminate\Support\Arr;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\Support\Traits\Macroable; use Illuminate\Support\Traits\Macroable;
use Illuminate\Translation\Translator; use Illuminate\Translation\Translator;
use mpba\Modules\Contracts\ActivatorInterface; use absdev\Modules\Contracts\ActivatorInterface;
abstract class Module abstract class Module
{ {
@@ -371,8 +371,8 @@ abstract class Module
protected function isLoadFilesOnBoot(): bool protected function isLoadFilesOnBoot(): bool
{ {
return config('modules.register.files', 'register') === 'boot' && return config('modules.register.files', 'register') === 'boot' &&
// force register method if option == boot && app is MPBA CMS // force register method if option == boot && app is absdev CMS
! class_exists('\Modules\Core\Foundation\MPBACms'); ! class_exists('\Modules\Core\Foundation\absdevCms');
} }
private function flushCache(): void private function flushCache(): void
+5 -5
View File
@@ -1,12 +1,12 @@
<?php <?php
namespace mpba\Modules; namespace absdev\Modules;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\Providers\BootstrapServiceProvider; use absdev\Modules\Providers\BootstrapServiceProvider;
use mpba\Modules\Providers\ConsoleServiceProvider; use absdev\Modules\Providers\ConsoleServiceProvider;
use mpba\Modules\Providers\ContractsServiceProvider; use absdev\Modules\Providers\ContractsServiceProvider;
abstract class ModulesServiceProvider extends ServiceProvider abstract class ModulesServiceProvider extends ServiceProvider
{ {
+3 -3
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Process; namespace absdev\Modules\Process;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use Symfony\Component\Process\Process; use Symfony\Component\Process\Process;
class Installer class Installer
@@ -26,7 +26,7 @@ class Installer
/** /**
* The module repository instance. * The module repository instance.
* *
* @var mpba\Modules\Contracts\RepositoryInterface * @var absdev\Modules\Contracts\RepositoryInterface
*/ */
protected $repository; protected $repository;
+3 -3
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Process; namespace absdev\Modules\Process;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\Contracts\RunableInterface; use absdev\Modules\Contracts\RunableInterface;
class Runner implements RunableInterface class Runner implements RunableInterface
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
<?php <?php
namespace mpba\Modules\Process; namespace absdev\Modules\Process;
use mpba\Modules\Module; use absdev\Modules\Module;
class Updater extends Runner class Updater extends Runner
{ {
+2 -2
View File
@@ -1,9 +1,9 @@
<?php <?php
namespace mpba\Modules\Providers; namespace absdev\Modules\Providers;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
class BootstrapServiceProvider extends ServiceProvider class BootstrapServiceProvider extends ServiceProvider
{ {
+46 -46
View File
@@ -1,53 +1,53 @@
<?php <?php
namespace mpba\Modules\Providers; namespace absdev\Modules\Providers;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use mpba\Modules\Commands\CommandMakeCommand; use absdev\Modules\Commands\CommandMakeCommand;
use mpba\Modules\Commands\ComponentMakeCommand; use absdev\Modules\Commands\ComponentMakeCommand;
use mpba\Modules\Commands\ControllerMakeCommand; use absdev\Modules\Commands\ControllerMakeCommand;
use mpba\Modules\Commands\DisableCommand; use absdev\Modules\Commands\DisableCommand;
use mpba\Modules\Commands\DumpCommand; use absdev\Modules\Commands\DumpCommand;
use mpba\Modules\Commands\EnableCommand; use absdev\Modules\Commands\EnableCommand;
use mpba\Modules\Commands\EventMakeCommand; use absdev\Modules\Commands\EventMakeCommand;
use mpba\Modules\Commands\FactoryMakeCommand; use absdev\Modules\Commands\FactoryMakeCommand;
use mpba\Modules\Commands\HelperMakeCommand; use absdev\Modules\Commands\HelperMakeCommand;
use mpba\Modules\Commands\InstallCommand; use absdev\Modules\Commands\InstallCommand;
use mpba\Modules\Commands\JobMakeCommand; use absdev\Modules\Commands\JobMakeCommand;
use mpba\Modules\Commands\ListCommand; use absdev\Modules\Commands\ListCommand;
use mpba\Modules\Commands\ListenerMakeCommand; use absdev\Modules\Commands\ListenerMakeCommand;
use mpba\Modules\Commands\MailMakeCommand; use absdev\Modules\Commands\MailMakeCommand;
use mpba\Modules\Commands\MiddlewareMakeCommand; use absdev\Modules\Commands\MiddlewareMakeCommand;
use mpba\Modules\Commands\MigrateCommand; use absdev\Modules\Commands\MigrateCommand;
use mpba\Modules\Commands\MigrateRefreshCommand; use absdev\Modules\Commands\MigrateRefreshCommand;
use mpba\Modules\Commands\MigrateResetCommand; use absdev\Modules\Commands\MigrateResetCommand;
use mpba\Modules\Commands\MigrateRollbackCommand; use absdev\Modules\Commands\MigrateRollbackCommand;
use mpba\Modules\Commands\MigrateStatusCommand; use absdev\Modules\Commands\MigrateStatusCommand;
use mpba\Modules\Commands\MigrationMakeCommand; use absdev\Modules\Commands\MigrationMakeCommand;
use mpba\Modules\Commands\ModelMakeCommand; use absdev\Modules\Commands\ModelMakeCommand;
use mpba\Modules\Commands\ModuleDeleteCommand; use absdev\Modules\Commands\ModuleDeleteCommand;
use mpba\Modules\Commands\ModuleMakeCommand; use absdev\Modules\Commands\ModuleMakeCommand;
use mpba\Modules\Commands\NotificationMakeCommand; use absdev\Modules\Commands\NotificationMakeCommand;
use mpba\Modules\Commands\PolicyMakeCommand; use absdev\Modules\Commands\PolicyMakeCommand;
use mpba\Modules\Commands\ProviderMakeCommand; use absdev\Modules\Commands\ProviderMakeCommand;
use mpba\Modules\Commands\PublishCommand; use absdev\Modules\Commands\PublishCommand;
use mpba\Modules\Commands\PublishConfigurationCommand; use absdev\Modules\Commands\PublishConfigurationCommand;
use mpba\Modules\Commands\PublishMigrationCommand; use absdev\Modules\Commands\PublishMigrationCommand;
use mpba\Modules\Commands\PublishTranslationCommand; use absdev\Modules\Commands\PublishTranslationCommand;
use mpba\Modules\Commands\RequestMakeCommand; use absdev\Modules\Commands\RequestMakeCommand;
use mpba\Modules\Commands\ResourceMakeCommand; use absdev\Modules\Commands\ResourceMakeCommand;
use mpba\Modules\Commands\RouteProviderMakeCommand; use absdev\Modules\Commands\RouteProviderMakeCommand;
use mpba\Modules\Commands\RuleMakeCommand; use absdev\Modules\Commands\RuleMakeCommand;
use mpba\Modules\Commands\SeedCommand; use absdev\Modules\Commands\SeedCommand;
use mpba\Modules\Commands\SeedMakeCommand; use absdev\Modules\Commands\SeedMakeCommand;
use mpba\Modules\Commands\SetupCommand; use absdev\Modules\Commands\SetupCommand;
use mpba\Modules\Commands\SupportMakeCommand; use absdev\Modules\Commands\SupportMakeCommand;
use mpba\Modules\Commands\SyncModuleStatusesCommand; use absdev\Modules\Commands\SyncModuleStatusesCommand;
use mpba\Modules\Commands\TestMakeCommand; use absdev\Modules\Commands\TestMakeCommand;
use mpba\Modules\Commands\TraitMakeCommand; use absdev\Modules\Commands\TraitMakeCommand;
use mpba\Modules\Commands\UnUseCommand; use absdev\Modules\Commands\UnUseCommand;
use mpba\Modules\Commands\UpdateCommand; use absdev\Modules\Commands\UpdateCommand;
use mpba\Modules\Commands\UseCommand; use absdev\Modules\Commands\UseCommand;
class ConsoleServiceProvider extends ServiceProvider class ConsoleServiceProvider extends ServiceProvider
{ {
+3 -3
View File
@@ -1,10 +1,10 @@
<?php <?php
namespace mpba\Modules\Providers; namespace absdev\Modules\Providers;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\Laravel\LaravelFileRepository; use absdev\Modules\Laravel\LaravelFileRepository;
class ContractsServiceProvider extends ServiceProvider class ContractsServiceProvider extends ServiceProvider
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
<?php <?php
namespace mpba\Modules\Publishing; namespace absdev\Modules\Publishing;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
class AssetPublisher extends Publisher class AssetPublisher extends Publisher
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
<?php <?php
namespace mpba\Modules\Publishing; namespace absdev\Modules\Publishing;
use mpba\Modules\Support\Config\GenerateConfigReader; use absdev\Modules\Support\Config\GenerateConfigReader;
class LangPublisher extends Publisher class LangPublisher extends Publisher
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
<?php <?php
namespace mpba\Modules\Publishing; namespace absdev\Modules\Publishing;
use mpba\Modules\Migrations\Migrator; use absdev\Modules\Migrations\Migrator;
class MigrationPublisher extends AssetPublisher class MigrationPublisher extends AssetPublisher
{ {
+7 -7
View File
@@ -1,12 +1,12 @@
<?php <?php
namespace mpba\Modules\Publishing; namespace absdev\Modules\Publishing;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use mpba\Modules\Contracts\PublisherInterface; use absdev\Modules\Contracts\PublisherInterface;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\Module; use absdev\Modules\Module;
abstract class Publisher implements PublisherInterface abstract class Publisher implements PublisherInterface
{ {
@@ -20,7 +20,7 @@ abstract class Publisher implements PublisherInterface
/** /**
* The modules repository instance. * The modules repository instance.
* *
* @var mpba\Modules\Contracts\RepositoryInterface * @var absdev\Modules\Contracts\RepositoryInterface
*/ */
protected $repository; protected $repository;
@@ -87,7 +87,7 @@ abstract class Publisher implements PublisherInterface
/** /**
* Get module instance. * Get module instance.
* *
* @return \mpba\Modules\Module * @return \absdev\Modules\Module
*/ */
public function getModule() public function getModule()
{ {
@@ -109,7 +109,7 @@ abstract class Publisher implements PublisherInterface
/** /**
* Get modules repository instance. * Get modules repository instance.
* *
* @return mpba\Modules\Contracts\RepositoryInterface * @return absdev\Modules\Contracts\RepositoryInterface
*/ */
public function getRepository() public function getRepository()
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Routing; namespace absdev\Modules\Routing;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
namespace mpba\Modules\Support\Config; namespace absdev\Modules\Support\Config;
class GenerateConfigReader class GenerateConfigReader
{ {
public static function read(string $value): GeneratorPath public static function read(string $value): GeneratorPath
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Support\Config; namespace absdev\Modules\Support\Config;
class GeneratorPath class GeneratorPath
{ {
+6 -6
View File
@@ -1,14 +1,14 @@
<?php <?php
namespace mpba\Modules\Support; namespace absdev\Modules\Support;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use mpba\Modules\Contracts\RepositoryInterface; use absdev\Modules\Contracts\RepositoryInterface;
use mpba\Modules\DevelopmentSupport\Entities\ModuleStatus; use absdev\Modules\DevelopmentSupport\Entities\ModuleStatus;
use mpba\Modules\Module; use absdev\Modules\Module;
use RuntimeException; use RuntimeException;
class DatabaseModuleRegistry class DatabaseModuleRegistry
@@ -361,7 +361,7 @@ class DatabaseModuleRegistry
$composer = $this->composerData($module); $composer = $this->composerData($module);
$name = $composer['name'] ?? ''; $name = $composer['name'] ?? '';
return Str::startsWith($name, 'mpba/') || $name === '' ? 'MPBA' : 'Third-party'; return Str::startsWith($name, 'absdev/') || $name === '' ? 'absdev' : 'Third-party';
} }
protected function author(Module $module): ?string protected function author(Module $module): ?string
@@ -372,7 +372,7 @@ class DatabaseModuleRegistry
return $authors[0]['name']; return $authors[0]['name'];
} }
return 'MPBA'; return 'absdev';
} }
protected function namespace(Module $module): ?string protected function namespace(Module $module): ?string
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Support\Migrations; namespace absdev\Modules\Support\Migrations;
class NameParser class NameParser
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Support\Migrations; namespace absdev\Modules\Support\Migrations;
use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Arr; use Illuminate\Support\Arr;
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Support; namespace absdev\Modules\Support;
class Stub class Stub
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Traits; namespace absdev\Modules\Traits;
trait CanClearModulesCache trait CanClearModulesCache
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Traits; namespace absdev\Modules\Traits;
trait MigrationLoaderTrait trait MigrationLoaderTrait
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
namespace mpba\Modules\Traits; namespace absdev\Modules\Traits;
trait ModuleCommandTrait trait ModuleCommandTrait
{ {

Some files were not shown because too many files have changed in this diff Show More