PHPackages                             malekbenelouafi/laravel-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. malekbenelouafi/laravel-status

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

malekbenelouafi/laravel-status
==============================

Laravel status a simple, automatic Status check for any model based on Laravel.

v1.0.0(8y ago)165MITPHPPHP &gt;=5.4.0

Since Mar 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/malekbenelouafi/laravel-status)[ Packagist](https://packagist.org/packages/malekbenelouafi/laravel-status)[ Docs](https://github.com/malekbenelouafi/laravel-status)[ RSS](/packages/malekbenelouafi-laravel-status/feed)WikiDiscussions master Synced yesterday

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

Laravel Status
==============

[](#laravel-status)

[![License](https://camo.githubusercontent.com/baef333334f8a72cc2459a78b6cfbb5cc5203091026febb0bdc87944a0b75d91/68747470733a2f2f706f7365722e707567782e6f72672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f6c6963656e7365)](LICENSE.md)[![Latest Stable Version](https://camo.githubusercontent.com/d230b021e0a7cde29e5c2cb8198bbb4322c2e693239b7f27bbe5889ea4b528ca/68747470733a2f2f706f7365722e707567782e6f72672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f76657273696f6e)](https://packagist.org/packages/malekbenelouafi/laravel-status)[![Total Downloads](https://camo.githubusercontent.com/938a4b04b2a03725621af3e2e4a737ea6dc72a2728efd2b3627802b062b297a9/68747470733a2f2f706f7365722e707567782e6f72672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f646f776e6c6f616473)](https://packagist.org/packages/malekbenelouafi/laravel-status)[![Latest Unstable Version](https://camo.githubusercontent.com/6b861feeabe6ac25fd5dc17a39b103893c2e781f89efce82ea336ae255a9190b/68747470733a2f2f706f7365722e707567782e6f72672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f762f756e737461626c65)](//packagist.org/packages/malekbenelouafi/laravel-status)[![License](https://camo.githubusercontent.com/baef333334f8a72cc2459a78b6cfbb5cc5203091026febb0bdc87944a0b75d91/68747470733a2f2f706f7365722e707567782e6f72672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f6c6963656e7365)](https://packagist.org/packages/malekbenelouafi/laravel-status)[![composer.lock available](https://camo.githubusercontent.com/f46d10d7015c89ead03f851cbb253bf89ca38b46cd41da605e70575589cdb5d2/68747470733a2f2f706f7365722e707567782e6f72672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f636f6d706f7365726c6f636b)](https://packagist.org/packages/malekbenelouafi/laravel-status)[![Code Intelligence Status](https://camo.githubusercontent.com/2af1c9bebdb75c9c127321ff4b9d8f6eee1021f00f922c089e19e02a5fdbc532/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Build Status](https://camo.githubusercontent.com/8e120280a78f6b1d81ed050456a7aa7d3395100eea3d222a156bd755ef035509/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/malekbenelouafi/laravel-status/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/adf5e6d861f22f07e805ae92df8508da2b5606e3d91de8d062da5d45c30bfa99/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616c656b62656e656c6f756166692f6c61726176656c2d7374617475732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/malekbenelouafi/laravel-status/?branch=master)

A simple, automatic Status check for any model based on Laravel 4.\* - 5.\*

### What are the benefits?

[](#what-are-the-benefits)

You can check the status of any module with sample way.

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

[](#installation)

To get started, require this package

- Via Composer

```
 composer require malekbenelouafi/laravel-status
```

- Via composer.json file

Add the following to the `require` section of your projects `composer.json` file.

```
"malekbenelouafi/laravel-status": "1.*",
```

Run composer update to download the package

```
 composer update
```

Usage
-----

[](#usage)

#### Migrations

[](#migrations)

When using the migration you should add new column`status`.

```
$table->tinyInteger('status')->comment('0: inactive; 1: active');
```

it's will create column status name inside of our database schema, To be ready to receive check the model.

> Simply, the schema seems something like this.

```
Schema::create('users', function (Blueprint $table) {

  $table->increments('id');
  $table->tinyInteger('status')->comment('0: inactive; 1: active');
  ....
  ....
  $table->timestamps();
});
```

#### Models

[](#models)

Use this trait in any model.

To set up a model to using Uuid, simply use the HasStatus trait:

```
use Illuminate\Database\Eloquent\Model;
use Malekbenelouafi\LaravelStatus\HasStatus;

class ExampleModel extends Model
{
  use HasStatus;
  ....
}
```

#### Controller

[](#controller)

When you create a new instance of a model which uses Status, our package will automatically by deafult get only active items also you can uses this scope methods:

- `ExampleModel::withInactive()`: to get all element together ( all )
- `ExampleModel::withoutInactive()`: to get items Without inactive element ( only active ) =&gt; by default
- `ExampleModel::onlyInactive()`: to get only inactive element

Support
-------

[](#support)

If you are having general issues with this package, feel free to contact me [malekbelouafi@gmail.com](malekbelouafi@gmail.com).

If you believe you have found an issue, please report it using the [GitHub issue tracker](https://github.com/Malekbenelouafi/laravel-status/issues), or better yet, fork the repository and submit a pull request.

If you're using this package, I'd love to hear your thoughts. Thanks!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2987d ago

### Community

Maintainers

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

---

Tags

statusactiveinactivecheck-status

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/malekbenelouafi-laravel-status/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[cybercog/laravel-eloquent-flag

Laravel Eloquent boolean &amp; timestamp flagged attributes behavior.

13518.7k](/packages/cybercog-laravel-eloquent-flag)[kirschbaum-development/commentions

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

12369.2k](/packages/kirschbaum-development-commentions)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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