battle with structure

This commit is contained in:
2024-10-22 13:30:03 +05:00
parent 5ffb0f2926
commit 96a5430cac
30 changed files with 1038 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Modules;
interface ModuleContract
{
/**
* Check if is module enabled
*/
public function isEnabled(): bool;
/**
* Disable module
*/
public function disable(): void;
/**
* Enable module
*/
public function enable(): void;
/**
* Check if module has a filament resource
*/
public function hasFilamentResource(): bool;
}