PHPackages                             dutchcodingcompany/filament-developer-logins - 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. dutchcodingcompany/filament-developer-logins

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

dutchcodingcompany/filament-developer-logins
============================================

Add buttons to the login page of Filament to login as a specific user.

2.1.0(5mo ago)64233.6k↓21.1%20[3 issues](https://github.com/DutchCodingCompany/filament-developer-logins/issues)[1 PRs](https://github.com/DutchCodingCompany/filament-developer-logins/pulls)20MITPHPPHP ^8.2CI passing

Since Apr 26Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/DutchCodingCompany/filament-developer-logins)[ Packagist](https://packagist.org/packages/dutchcodingcompany/filament-developer-logins)[ Docs](https://github.com/dutchcodingcompany/filament-developer-logins)[ RSS](/packages/dutchcodingcompany-filament-developer-logins/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (19)Used By (20)

Filament Developer Logins
=========================

[](#filament-developer-logins)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8a5b4af5102852402421200422a4d21c5d6156a69ddc99b24f314e4ab5bcac9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6475746368636f64696e67636f6d70616e792f66696c616d656e742d646576656c6f7065722d6c6f67696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dutchcodingcompany/filament-developer-logins)[![GitHub Tests Action Status](https://camo.githubusercontent.com/38567c803ee2b6f9d56d49f5869a2a6763d856b729973d439b002711065a1424/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6475746368636f64696e67636f6d70616e792f66696c616d656e742d646576656c6f7065722d6c6f67696e732f72756e2d746573742e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dutchcodingcompany/filament-developer-logins/actions?query=workflow%3Arun-test+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b649feec991b0de41cf02575b7e3ce40670e633a64d0c347aa0d628854529467/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6475746368636f64696e67636f6d70616e792f66696c616d656e742d646576656c6f7065722d6c6f67696e732f7068702d63732d66697865722e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/dutchcodingcompany/filament-developer-logins/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/bce2dce6495bc6fd4d95c2b948a081aa42941ca7868ce7ebbeedd453aed7b254/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6475746368636f64696e67636f6d70616e792f66696c616d656e742d646576656c6f7065722d6c6f67696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dutchcodingcompany/filament-developer-logins)

This plugin allows you to enable one-click logins for your local Filament panels, which is useful when developing a Filament project with multiple users and various roles.

[![example-screenshot.png](https://raw.githubusercontent.com/DutchCodingCompany/filament-developer-logins/main/docs-assets/screenshots/example-screenshot.png)](https://raw.githubusercontent.com/DutchCodingCompany/filament-developer-logins/main/docs-assets/screenshots/example-screenshot.png)

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

[](#installation)

Filament versionPackage versionReadme[^5.x](https://github.com/filamentphp/filament/tree/5.x)^2.1.x[Link](https://github.com/DutchCodingCompany/filament-developer-logins/blob/main/README.md)[^4.x](https://github.com/filamentphp/filament/tree/4.x)2.x.x[Link](https://github.com/DutchCodingCompany/filament-developer-logins/blob/main/README.md)[^3.x](https://github.com/filamentphp/filament/tree/3.x)1.x.x[Link](https://github.com/DutchCodingCompany/filament-developer-logins/blob/1.10.0/README.md)You can install the package via composer.

```
composer require dutchcodingcompany/filament-developer-logins
```

Usage
-----

[](#usage)

Register the plugin in the Filament panel provider (the default file is `app/Providers/Filament/AdminPanelProvider.php`).

In the `users` method you can define the users (note: the users must exist), the key is used as a label on the login button and the value is used to search the user in the database.

```
// ...
->plugins([
    FilamentDeveloperLoginsPlugin::make()
        ->enabled(app()->environment('local'))
        ->users([
            'Admin' => 'admin@example.com',
            'User' => 'user@example.com',
        ])
]);
```

The users() method can also be passed a closure to compute the users list at render time, for example from the database.

```
// ...
FilamentDeveloperLoginsPlugin::make()
    ->users(fn () => User::pluck('email', 'name')->toArray())
]);
```

Customization
-------------

[](#customization)

### enabled()

[](#enabled)

By default, the plugin is disabled. You can enable it by calling the enabled() method. I strongly suggest enabling this plugin only in the local environment. You can achieve this by using the app()-&gt;environment() method. Additionally, the enabled() method also accepts a closure if you wish to enable the plugin based on a custom condition.

Example:

```
// ...
FilamentDeveloperLoginsPlugin::make()
    ->enabled(fn() => app()->environment('local'))
```

### switchable()

[](#switchable)

By default, a "Switch to" button is shown in the top right corner of the screen, so you can easily switch between the provided users. If you want to disable this feature, you can use the switchable() method.

```
// ...
FilamentDeveloperLoginsPlugin::make()
    ->switchable(false) // This also accepts a closure.
```

[![switchable-screenshot.png](https://raw.githubusercontent.com/DutchCodingCompany/filament-developer-logins/main/docs-assets/screenshots/switchable-screenshot.png)](https://raw.githubusercontent.com/DutchCodingCompany/filament-developer-logins/main/docs-assets/screenshots/switchable-screenshot.png)

### column()

[](#column)

By default, the user column is set to `email`. If you want to use a different column, you can use the column() method.

Example:

```
FilamentDeveloperLoginsPlugin::make()
    ->column('name')
```

### modelClass()

[](#modelclass)

By default, the model class is set to `App\Models\User`. If you want to use a different model, you can use the modelClass() method.

Example:

```
FilamentDeveloperLoginsPlugin::make()
    ->modelClass(Admin::class)
```

### redirectTo()

[](#redirectto)

By default, the user will be redirected using the `Filament::getUrl()` method, which directs them to the dashboard. In the case of multi-tenancy, the user will also be redirected to the correct tenant. If you prefer to use a different url, you can utilize the redirectTo() method.

```
FilamentDeveloperLoginsPlugin::make()
    ->redirectTo('/custom-url')
```

Since the routes are not yet registered when the plugin is created, you need to use a closure to redirect to a named route.

```
FilamentDeveloperLoginsPlugin::make()
    ->redirectTo(fn () => route('custom.route'))
```

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)

- [Bram Raaijmakers](https://github.com/bramr94)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance76

Regular maintenance activity

Popularity50

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 82.1% 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 ~42 days

Recently: every ~59 days

Total

16

Last Release

164d ago

Major Versions

1.10.0 → 2.0.02025-08-26

PHP version history (2 changes)1.0.0PHP ^8.1

2.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/100052?v=4)[Tom Janssen](/maintainers/dododedodonl)[@dododedodonl](https://github.com/dododedodonl)

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

---

Top Contributors

[![bramr94](https://avatars.githubusercontent.com/u/24361182?v=4)](https://github.com/bramr94 "bramr94 (101 commits)")[![slimani-dev](https://avatars.githubusercontent.com/u/25089144?v=4)](https://github.com/slimani-dev "slimani-dev (6 commits)")[![anheru88](https://avatars.githubusercontent.com/u/3945572?v=4)](https://github.com/anheru88 "anheru88 (6 commits)")[![mathieutu](https://avatars.githubusercontent.com/u/11351322?v=4)](https://github.com/mathieutu "mathieutu (4 commits)")[![bilogic](https://avatars.githubusercontent.com/u/946010?v=4)](https://github.com/bilogic "bilogic (2 commits)")[![dipesh79](https://avatars.githubusercontent.com/u/63183800?v=4)](https://github.com/dipesh79 "dipesh79 (1 commits)")[![ainesophaur](https://avatars.githubusercontent.com/u/4686198?v=4)](https://github.com/ainesophaur "ainesophaur (1 commits)")[![dododedodonl](https://avatars.githubusercontent.com/u/100052?v=4)](https://github.com/dododedodonl "dododedodonl (1 commits)")[![gizburdt](https://avatars.githubusercontent.com/u/1470623?v=4)](https://github.com/gizburdt "gizburdt (1 commits)")

---

Tags

laravelfilamentdutchcodingcompanyfilament-developer-logins

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/dutchcodingcompany-filament-developer-logins/health.svg)

```
[![Health](https://phpackages.com/badges/dutchcodingcompany-filament-developer-logins/health.svg)](https://phpackages.com/packages/dutchcodingcompany-filament-developer-logins)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

84215.9k9](/packages/stephenjude-filament-two-factor-authentication)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

6649.5k1](/packages/marcelweidum-filament-passkeys)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

2191.1M10](/packages/dutchcodingcompany-filament-socialite)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274325.8k8](/packages/croustibat-filament-jobs-monitor)

PHPackages © 2026

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