PHPackages                             alphaolomi/laravel-approvals - 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. [Database &amp; ORM](/categories/database)
4. /
5. alphaolomi/laravel-approvals

ActiveLibrary[Database &amp; ORM](/categories/database)

alphaolomi/laravel-approvals
============================

Laravel Approvals is a package that allows you to approve Eloquent models.

v1.0.0(2y ago)85[4 PRs](https://github.com/alphaolomi/laravel-approvals/pulls)MITPHPPHP ^8.1CI passing

Since Jul 15Pushed 5d ago1 watchersCompare

[ Source](https://github.com/alphaolomi/laravel-approvals)[ Packagist](https://packagist.org/packages/alphaolomi/laravel-approvals)[ Docs](https://github.com/alphaolomi/laravel-approvals)[ RSS](/packages/alphaolomi-laravel-approvals/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (12)Versions (7)Used By (0)

Laravel Approvals
=================

[](#laravel-approvals)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5ccc03a98ec59a2047bd8d4f9b9751e5358f6a226cc000c60f08859ef280024a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c7068616f6c6f6d692f6c61726176656c2d617070726f76616c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alphaolomi/laravel-approvals)[![GitHub Tests Action Status](https://camo.githubusercontent.com/cdaffe8b11aa458b815c09aa1eaa95e4ace384eb3a22d01b00cc8c5191756bf3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c7068616f6c6f6d692f6c61726176656c2d617070726f76616c732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/alphaolomi/laravel-approvals/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/490880a1042bf4a3b93b1711fb5220fa7522458c7be5cb6f4d56be35815ab402/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c7068616f6c6f6d692f6c61726176656c2d617070726f76616c732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/alphaolomi/laravel-approvals/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/24c87dc44fd6ef53b5d5d53d7090a281b0690d5dd443c70857be5db2026ad90f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c7068616f6c6f6d692f6c61726176656c2d617070726f76616c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alphaolomi/laravel-approvals)

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

[](#installation)

You can install the package via composer:

```
composer require alphaolomi/laravel-approvals
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-approvals-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-approvals-config"
```

Usage
-----

[](#usage)

```
$project = Project::find(1);

// Approve a project
$project->approve('project-submitted', auth()->user());

// Check if a project is approved
$project->isApproved('project-submitted'); // true
$project->isApproved('project-submitted', auth()->user()); // true

// Check if a project is approved by a specific user
$project->isApproved('project-submitted', User::find(2)); // false

$admin = User::find(2);

// Now approve the project by an admin
$project->approve('project-approved', $admin);

// Check if a project is approved
$project->isApproved('project-approved'); // true
```

Using the facade

```
use Alphaolomi\LaravelApprovals\Facades\Approvals;

$project = Project::find(1);

// Approve a project
Approvals::approve($project, 'project-submitted', auth()->user());

// Get all approvals for a project
$allProjectApprovals = Approvals::all($project);

// Get all approvals
$allApprovals = Approvals::allApprovals();
```

Testing
-------

[](#testing)

Project is tested with [pest](https://pestphp.com/).

```
composer test
```

Versioning
----------

[](#versioning)

Project follows [RomVer](https://github.com/romversioning/romver) for versioning. For the versions available, see the [tags on this repository](../../tags).

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Alpha Olomi](https://github.com/alphaolomi)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 84% of packages

Maintenance65

Regular maintenance activity

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

980d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7534dd7341d883267be41935354b56c27f94d6bbd6a7abd9f257bb2d494a3798?d=identicon)[alphao](/maintainers/alphao)

---

Top Contributors

[![alphaolomi](https://avatars.githubusercontent.com/u/10551599?v=4)](https://github.com/alphaolomi "alphaolomi (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

approval-processlaravelworkflowalphaolomilaravel-approvals

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/alphaolomi-laravel-approvals/health.svg)

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

###  Alternatives

[alexstewartja/laravel-attribute-observer

Observe (and react to) attribute changes made on Eloquent models.

7382.1k](/packages/alexstewartja-laravel-attribute-observer)[avocet-shores/laravel-rewind

Laravel Rewind is a powerful, easy-to-use versioning package for your Eloquent models.

1969.1k](/packages/avocet-shores-laravel-rewind)[kiwilan/typescriptable-laravel

PHP package for Laravel to type Eloquent models, routes, Spatie Settings with autogenerated TypeScript. If you want to use some helpers with Inertia, you can install associated NPM package.

4019.6k](/packages/kiwilan-typescriptable-laravel)[orptech/laravel-migration-partition

Laravel extensions that extends Illuminate to enable partitioned table creation within Laravel migrations.

3426.1k](/packages/orptech-laravel-migration-partition)[pyaesoneaung/to-raw-sql

Get raw SQL from Laravel Query Builder

569.8k](/packages/pyaesoneaung-to-raw-sql)[egyjs/dbml-to-laravel

Generate Laravel Eloquent models and migration files directly from your DBML (Database Markup Language) files with ease.

694.8k](/packages/egyjs-dbml-to-laravel)

PHPackages © 2026

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