Users module: accounts, groups, permissions with needs, manager:create-user
This commit is contained in:
1 parent
08289db744
commit
f86f5aea28
25 files changed
+744
-58
No files matched your search
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace IriksIT\Manager\Contracts;
|
||||
|
||||
use IriksIT\Manager\Support\Permission;
|
||||
|
||||
/**
|
||||
* One switchable part of the manager. A module that is off contributes nothing:
|
||||
* no routes, no migrations, no menu items, no permissions.
|
||||
@@ -21,9 +23,9 @@ interface Module
|
||||
public function requires(): array;
|
||||
|
||||
/**
|
||||
* Permissions this module adds, as value => label. Values are prefixed by the module key.
|
||||
* Permissions this module adds. Values are prefixed by the module key.
|
||||
*
|
||||
* @return array<string, string>
|
||||
* @return list<Permission>
|
||||
*/
|
||||
public function permissions(): array;
|
||||
|
||||
@@ -33,6 +35,15 @@ interface Module
|
||||
/** Absolute path of the routes file, or null. */
|
||||
public function routes(): ?string;
|
||||
|
||||
/** Absolute path of a routes file outside the manager (no prefix, no manager middleware), or null. */
|
||||
public function publicRoutes(): ?string;
|
||||
|
||||
/** Absolute path of the migrations folder, or null. */
|
||||
public function migrations(): ?string;
|
||||
|
||||
/** @return list<class-string> Artisan commands this module adds */
|
||||
public function commands(): array;
|
||||
|
||||
/** Runs at boot, only when the module is on (register rate limiters, usage sources, ...). */
|
||||
public function boot(): void;
|
||||
}
|
||||
Reference in new issue
Block a user