diff --git a/app/Abstracts/Commands/Module.php b/app/Abstracts/Commands/Module.php index 15676eaf7..d995f505e 100644 --- a/app/Abstracts/Commands/Module.php +++ b/app/Abstracts/Commands/Module.php @@ -3,7 +3,7 @@ namespace App\Abstracts\Commands; use App\Models\Module\Module as Model; -use App\Models\Module\ModuleHistory; +use App\Models\Module\ModuleHistory as ModelHistory; use Illuminate\Console\Command; use Illuminate\Support\Str; use Symfony\Component\Console\Input\InputArgument; @@ -53,7 +53,7 @@ abstract class Module extends Command return; } - ModuleHistory::create([ + ModelHistory::create([ 'company_id' => $this->company_id, 'module_id' => $this->model->id, 'category' => $this->module->get('category'), diff --git a/app/Console/Commands/UninstallModule.php b/app/Console/Commands/UninstallModule.php index fa4a29d4a..2d2993d27 100644 --- a/app/Console/Commands/UninstallModule.php +++ b/app/Console/Commands/UninstallModule.php @@ -2,10 +2,10 @@ namespace App\Console\Commands; -use App\Abstracts\Commands\Module; +use App\Abstracts\Commands\Module as Command; use App\Events\Module\Uninstalled; -class UninstallModule extends Module +class UninstallModule extends Command { /** * The name and signature of the console command. diff --git a/overrides/akaunting/module/Commands/DisableCommand.php b/overrides/akaunting/module/Commands/DisableCommand.php index 45c26717b..310449a39 100644 --- a/overrides/akaunting/module/Commands/DisableCommand.php +++ b/overrides/akaunting/module/Commands/DisableCommand.php @@ -2,10 +2,10 @@ namespace Akaunting\Module\Commands; -use App\Abstracts\Commands\Module; +use App\Abstracts\Commands\Module as Command; use App\Events\Module\Disabled; -class DisableCommand extends Module +class DisableCommand extends Command { /** * The name and signature of the console command. diff --git a/overrides/akaunting/module/Commands/EnableCommand.php b/overrides/akaunting/module/Commands/EnableCommand.php index bd4ef6a2e..51b787d9a 100644 --- a/overrides/akaunting/module/Commands/EnableCommand.php +++ b/overrides/akaunting/module/Commands/EnableCommand.php @@ -2,10 +2,10 @@ namespace Akaunting\Module\Commands; -use App\Abstracts\Commands\Module; +use App\Abstracts\Commands\Module as Command; use App\Events\Module\Enabled; -class EnableCommand extends Module +class EnableCommand extends Command { /** * The name and signature of the console command. diff --git a/overrides/akaunting/module/Commands/InstallCommand.php b/overrides/akaunting/module/Commands/InstallCommand.php index ae068710e..1dec3c368 100644 --- a/overrides/akaunting/module/Commands/InstallCommand.php +++ b/overrides/akaunting/module/Commands/InstallCommand.php @@ -2,11 +2,11 @@ namespace Akaunting\Module\Commands; -use App\Abstracts\Commands\Module; +use App\Abstracts\Commands\Module as Command; use App\Events\Module\Installed; use App\Models\Module\Module as Model; -class InstallCommand extends Module +class InstallCommand extends Command { /** * The name and signature of the console command.