PHPackages                             dainsys/locky - 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. dainsys/locky

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

dainsys/locky
=============

A laravel UI wrapper for spatie/laravel-permission with Bootstrap 4!

2.5.1(4y ago)058[2 issues](https://github.com/Yismen/locky/issues)1MITPHPPHP ^7.2CI failing

Since Jun 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Yismen/locky)[ Packagist](https://packagist.org/packages/dainsys/locky)[ RSS](/packages/dainsys-locky/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (9)Dependencies (7)Versions (32)Used By (1)

Dainsys Locky
=============

[](#dainsys-locky)

A laravel UI wrapper for spatie/laravel-permission with Bootstrap 4!

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

[](#installation)

- Install with `composer` by runining the command `composer require dainsys/locky`
- Add the `Dainsys\Locky\WithLockyAcl;` to your `User` model(s);

```
use Illuminate\Foundation\Auth\User as Authenticatable;
use Dainsys\Locky\WithLockyAcl;

class User extends Authenticatable
{
    use WithLockyAcl;
}
```

- Add the following item to the `protected $casts` array: ```
      protected $casts = [
          'inactivated_at' => 'date'
      ];
    ```
- Set you `LOCKY_SUPER_USER_EMAIL=super.user@email-example.com` in the .env file.
- This package relies on you having an auth system. We strongly suggest using `laravel/jetstream`, `laravel/freeze` or the legacy `laravel/ui`
- Views:

- The package ships with it's own views, therefore you MUST publish the package public assets by running `php artisan vendor:publish --tag=locky-public`. However, this is not necessary if you are planning to use your views. In this case you can run `php artisan vendor:publish --tag=locky-views` and make them extends your own layout view.

- Migrations:

- By default the packages migrations will run if you execute the `php artisan migrate` command. However, you can set the `with_migrations` option to false and handle the migrations yourselve. To do this, first run the `php artisan vendor:publish --tag=locky-config` command.
- Add the following liks to the auth portion of your `layouts.app` links:

```
@include('locky::_nav-links')
```

- You could also publish the package migrations by running `php artisan vendor:publish --tag=locky-migrations` and tweak them to suit your needs.

Usage
-----

[](#usage)

- After installing this package, you can limit user access by creating Laravel Policies with `php artisan make:policy` command and add the checks `return $user->hasAnyRole(["role1", "role2"])` or `return $user->hasAnyPermission(["permission1", "permission2"])` and by updating the Controller's constructor method:

```
use App\YourModel;

class MyController extends Controller
{
    public function __construct()
    {
        $this->authorizeResource(YourModel::class, 'model');
    }
}
```

- Please read Larave Authorization's documentations at
- This package add the concept of actives or inactive users by adding query scopes. Just use the scope `actives()` or `inactives()` to filter as desired.
- You can activate an user by calling the `activate()` method on a Eloquent User record; use `inactivate()` to inactivate an user.

### Dependencies

[](#dependencies)

- Dainsys Components:
- Laravel Ui:
- Spatie Permission:

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Recently: every ~4 days

Total

31

Last Release

1786d ago

Major Versions

0.3 → 1.0.02020-07-01

1.4.4 → 2.0.02020-12-10

PHP version history (2 changes)0.1.0PHP ^7.0

2.0.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb63dbe8a40df0f9ae9aeb2a6510aea91a7b2837e786590002a20f40f3161e5c?d=identicon)[Yismen](/maintainers/Yismen)

---

Top Contributors

[![Yismen](https://avatars.githubusercontent.com/u/4872942?v=4)](https://github.com/Yismen "Yismen (61 commits)")

### Embed Badge

![Health badge](/badges/dainsys-locky/health.svg)

```
[![Health](https://phpackages.com/badges/dainsys-locky/health.svg)](https://phpackages.com/packages/dainsys-locky)
```

###  Alternatives

[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
