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(3y 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 2d 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

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

1455d 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

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[tonysm/importmap-laravel

Use ESM with importmap to manage modern JavaScript in Laravel without transpiling or bundling.

148399.8k1](/packages/tonysm-importmap-laravel)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)

PHPackages © 2026

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