PHPackages                             kakhura/laravel-check-requests - 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. kakhura/laravel-check-requests

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

kakhura/laravel-check-requests
==============================

This package checks requests

2.0.0(5y ago)17MITPHPPHP &gt;=7.0.0

Since Oct 16Pushed 5y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

kakhura/laravel-check-requests
------------------------------

[](#kakhuralaravel-check-requests)

### Docs

[](#docs)

- [Installation](#installation)
- [Configuration (Config based management)](#configuration)
- [Views](#views)
- [Migrations](#migrations)

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

[](#installation)

Add the package in your composer.json by executing the command.

```
composer require kakhura/laravel-check-requests
```

For Laravel versions before 5.5 or if not using **auto-discovery**, register the service provider in `config/app.php`

```
'providers' => [
    /*
     * Package Service Providers...
     */
    \Kakhura\CheckRequest\CheckRequestServiceProvider::class,
],
```

Configuration
-------------

[](#configuration)

If you want to change ***default configuration***, you must publish default configuration file to your project by running this command in console:

```
php artisan vendor:publish --tag=kakhura-check-requests-config
```

This command will copy file `[/vendor/kakhura/laravel-check-requests/config/kakhura.check-requests.php]` to `[/config/kakhura.check-requests.php]`

Default `kakhura.check-requests.php` looks like:

```
return [
    /**
     * Which methods supports this package.
     */
    'request_methods' => [
        'post',
        'put',
    ],

    /**
     * Package use or not auth user check.
     */
    'use_auth_user_check' => false,
];
```

Views
-----

[](#views)

After publish [Configuration](#configuration), you must publish **views**, by running this command in console:

```
php artisan vendor:publish --tag=kakhura-check-requests-views
```

This command will copy file `[/vendor/kakhura/laravel-check-requests/resources/views]` to `[/resources/views/vendor/admin/check-requests]`

Migrations
----------

[](#migrations)

After publish [Views](#views), you must publish **migrations**, by running this command in console:

```
php artisan vendor:publish --tag=kakhura-check-requests-migrations
```

This command will copy file `[/vendor/kakhura/laravel-check-requests/database/migrations]` to `[/database/migrations]`

After publish [Migrations](#migrations), you must add `HasRelatedRequest` trait in your model in which you want check if request already had sent:

```
use Kakhura\CheckRequest\Traits\Models\HasRelatedRequest;

class Application extends Model
{
    use HasRelatedRequest;
}
```

You must create `RequestIdentifier` instance in all your model create functionality like this:

```
use Models\Application;

class ApplicationService extends Service
{
    public fucntion create(array $data)
    {
        ...
        $application = Application::create($data);
        $application->createRequestIdentifier(strval($requestId));
        ...
    }
}
```

After this, all of your route on which you want to check request existence, you must use middleware alias `with_request_identifier`.

Also, you can check if request already sent and receive model on which request had sent. Endpoint is `http://domain.com/requests/check/{requestId}`. This endpoint return 404 not found if request not found. If request found, you will receive response like this:

```
return [
   'id' => 'model_uuid' ?: 'model_id',
   'model' => 'application',
];
```

Enjoy.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

4

Last Release

2034d ago

Major Versions

1.2.0 → 2.0.02020-10-16

### Community

Maintainers

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

---

Top Contributors

[![kakhura](https://avatars.githubusercontent.com/u/46687823?v=4)](https://github.com/kakhura "kakhura (8 commits)")

---

Tags

laravelcheckrequests

### Embed Badge

![Health badge](/badges/kakhura-laravel-check-requests/health.svg)

```
[![Health](https://phpackages.com/badges/kakhura-laravel-check-requests/health.svg)](https://phpackages.com/packages/kakhura-laravel-check-requests)
```

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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