PHPackages                             the-3labs-team/laravel-cookie-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. the-3labs-team/laravel-cookie-auth

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

the-3labs-team/laravel-cookie-auth
==================================

Laravel Cookie Auth

v1.0.7(3y ago)148[2 PRs](https://github.com/The-3Labs-Team/laravel-cookie-auth/pulls)MITPHPPHP ^8.1|^8.2

Since Jan 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/The-3Labs-Team/laravel-cookie-auth)[ Packagist](https://packagist.org/packages/the-3labs-team/laravel-cookie-auth)[ Docs](https://github.com/the-3labs-team/laravel-cookie-auth)[ RSS](/packages/the-3labs-team-laravel-cookie-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (12)Versions (12)Used By (0)

Laravel Cookie Auth
===================

[](#laravel-cookie-auth)

[![Latest Version on Packagist](https://camo.githubusercontent.com/97c4375b2b1aba7897e7ebaf1017172f646e71c0513ddb56d4d7f7a9519f5510/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468652d336c6162732d7465616d2f6c61726176656c2d636f6f6b69652d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/the-3labs-team/laravel-cookie-auth)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2d77c7f995bdf8d203726884ab27f5ab52805ae7aedb0249c8f0c83b912c4943/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7468652d336c6162732d7465616d2f6c61726176656c2d636f6f6b69652d617574682f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/the-3labs-team/laravel-cookie-auth/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/52350bda923c82944df7ab35784b6801eb34e36afce4b46e29b781a006c3d9a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7468652d336c6162732d7465616d2f6c61726176656c2d636f6f6b69652d617574682f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/the-3labs-team/laravel-cookie-auth/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/469d17fe43e2ef225e1bfa700b0215e09eba528214aeaa704cc7554ea5e0be3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468652d336c6162732d7465616d2f6c61726176656c2d636f6f6b69652d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/the-3labs-team/laravel-cookie-auth)[![Maintainability](https://camo.githubusercontent.com/1eafc5c6e64ef80bf944818c157cfd6936a562e99adc5058e292bc6f26522bca/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36353236353061303465346365643531663333662f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/The-3Labs-Team/laravel-cookie-auth/maintainability)

A simple middleware for Laravel applications that creates a cookie for logged-in users. Used for simple configuration with [FastCGI](https://gist.github.com/murdercode/cb061b178d2883017a247b1f6c24e345).

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

[](#installation)

You can install the package via composer:

```
composer require the-3labs-team/laravel-cookie-auth
```

You can publish the config file with:

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

This is the contents of the published config file:

```
return [
    'cookie_name' => 'skip_cache',
    'cookie_value' => true,
    'cookie_lifetime' => 5,
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-cookie-auth-views"
```

Usage
-----

[](#usage)

In your `Kernel.php` add the middleware as follows:

```
protected $middlewareGroups = [
    'web' => [
        \The3LabsTeam\LaravelCookieAuth\LaravelCookieAuth::class,
        //...
```

Testing
-------

[](#testing)

```
composer test
```

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)

- [Stefano Novelli](https://github.com/The-3Labs-Team)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~5 days

Total

9

Last Release

1170d ago

Major Versions

v0.0.1 → v1.0.02023-01-16

PHP version history (2 changes)v0.0.1PHP ^8.1

v1.0.4PHP ^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/907d738d7cdaba6d5ecad8ed396c7fc93e3afba674b2d2288fd218663faed501?d=identicon)[murdercode](/maintainers/murdercode)

![](https://www.gravatar.com/avatar/0d15c41e526b0044aef2fc0955ea1ecfedea9d481c21272ec2b3b0341bafee14?d=identicon)[the-3labs-team](/maintainers/the-3labs-team)

---

Top Contributors

[![murdercode](https://avatars.githubusercontent.com/u/7630252?v=4)](https://github.com/murdercode "murdercode (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

laravellaravelThe-3Labs-Teamlaravel-cookie-auth

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/the-3labs-team-laravel-cookie-auth/health.svg)

```
[![Health](https://phpackages.com/badges/the-3labs-team-laravel-cookie-auth/health.svg)](https://phpackages.com/packages/the-3labs-team-laravel-cookie-auth)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)[spatie/laravel-passkeys

Use passkeys in your Laravel app

444494.4k16](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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