PHPackages                             med-ezzairi/account-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. med-ezzairi/account-module

ActiveLaravel-module[Authentication &amp; Authorization](/categories/authentication)

med-ezzairi/account-module
==========================

A module letting you make Account management easy, including users, groups, permissions &amp; roles

v4.0.0(6mo ago)01MITPHP

Since Oct 27Pushed 6mo agoCompare

[ Source](https://github.com/med-ezzairi/account-module)[ Packagist](https://packagist.org/packages/med-ezzairi/account-module)[ RSS](/packages/med-ezzairi-account-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Account Module
==============

[](#account-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6aa3d0039615c46e87dd1c3fa01eeef8959b9afd87537e50a59d038bad50174b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65642d657a7a616972692f6163636f756e742d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/med-ezzairi/account-module)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/b81e872a320c784bb8af0862702feec167d9c1e5b05ffb7eb474d74ba0cc9519/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65642d657a7a616972692f6163636f756e742d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/med-ezzairi/account-module)

This module lets you manage Groups of users, setup groups permissions and per user permissions, the reason behind this module is that you are free to define permissions in your config file as text and assign them to groups or users as you need. The final result is that you could check the user permission based on text (permission) you defined not ids (auto increment) used by other packages/modules.

Installation
------------

[](#installation)

This module requires using the package `nwidart/laravel-modules` see the page [nwidart/laravel-modules](https://github.com/nWidart/laravel-modules).

```
composer require med-ezzairi/account-module
```

Config and Migration
--------------------

[](#config-and-migration)

Check the config file under `Modules/Account/Config/account.php` to setup tables names.

Update the Model/Entity User in general under `app/Models/User`

```
php artisan module:migrate account
```

Update the Model User to use the trait `Modules\Account\Traits\UserUsingGroupsAndPermissions;`

as follow:

```
