PHPackages                             26b/laravel-account-status - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. 26b/laravel-account-status

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

26b/laravel-account-status
==========================

Laravel package for account statuses

v1.0.1(4y ago)12.3k[1 issues](https://github.com/26B/laravel-account-status/issues)MITPHPPHP ^7.4 || ^8.0

Since Apr 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/26B/laravel-account-status)[ Packagist](https://packagist.org/packages/26b/laravel-account-status)[ RSS](/packages/26b-laravel-account-status/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Laravel Account Status
======================

[](#laravel-account-status)

Configurable statuses for your user accounts.

- Handle access to application conditionally.
- Artisan command to toggle status for given user.
- Artisan command to activate X accounts.

Getting started
---------------

[](#getting-started)

Require the package

```
composer require 26b/laravel-account-status

```

To setup your database using the builtin migration.

```
php artisan vendor:publish --tag=account-status-migrations
php artisan migrate

```

Now that you have migrated, you might want to set your existing users to the `ACTIVE` state. You can do this X at a time.

```
php artisan account-status:activate 100

```

Usage
-----

[](#usage)

To protect your routes and redirect to the account status page you can add the builtin middleware to your kernel or individually to your routes.

```
    \TwentySixB\LaravelAccountStatus\Http\Middleware\EnsureAccountActive::class,
```

### Commands

[](#commands)

**Toggle**You can change the status for a given user `ID` like this.

```
php artisan account-status:toggle ID SUSPENDED

```

**Activate**When you have, for example, `QUEUED` users you can change their status to `ACTIVE` by running the command

```
php artisan account-status:activate 50

```

### Factories

[](#factories)

You can add some states to your factories to test your app.

```
$user = User::factory()->queued()->make();
```

```
use TwentySixB\LaravelAccountStatus\AccountStatus;

...

/**
 * Indicate that the model's is in a queued state.
 *
 * @return \Illuminate\Database\Eloquent\Factories\Factory
 */
public function queued()
{
    return $this->state(
        function (array $attributes) {
            return [
                'status' => AccountStatus::QUEUED,
            ];
        }
    );
}
```

Customizing
-----------

[](#customizing)

Publish the configuration file should you need to customise it.

```
php artisan vendor:publish --tag=account-status-config

```

To customize the "account blocked template" you can publish the views and change them at your will.

```
php artisan vendor:publish --tag=account-status-views

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~28 days

Total

2

Last Release

1507d ago

### Community

Maintainers

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

---

Top Contributors

[![csrui](https://avatars.githubusercontent.com/u/205312?v=4)](https://github.com/csrui "csrui (7 commits)")

---

Tags

laravellaravel-packagephp

### Embed Badge

![Health badge](/badges/26b-laravel-account-status/health.svg)

```
[![Health](https://phpackages.com/badges/26b-laravel-account-status/health.svg)](https://phpackages.com/packages/26b-laravel-account-status)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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