PHPackages                             kgalanos/filament-user - 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. kgalanos/filament-user

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

kgalanos/filament-user
======================

Add option to filamentphp to login with username or email

2.0.0(2y ago)4251[2 PRs](https://github.com/kgalanos/filament-user/pulls)MITPHPPHP ^8.1

Since Aug 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kgalanos/filament-user)[ Packagist](https://packagist.org/packages/kgalanos/filament-user)[ Docs](https://github.com/kgalanos/filament-user)[ RSS](/packages/kgalanos-filament-user/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (20)Versions (6)Used By (0)

Add username or email to login filamentphp panel
================================================

[](#add-username-or-email-to-login-filamentphp-panel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/48725cfa8f085fe4eedaa7ab4268103dd2f7f155346c34487c1e471dab459a9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b67616c616e6f732f66696c616d656e742d757365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kgalanos/filament-user)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8b3850c734b1b30ca42af32584d03efe39fb3f9e17e93659d2068eb05b05aed1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b67616c616e6f732f66696c616d656e742d757365722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kgalanos/filament-user/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5c6dac0ec6b3582e80ec7e3b0b3393aa741dab8cddedfb931dbc82d2f99aeeb1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b67616c616e6f732f66696c616d656e742d757365722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kgalanos/filament-user/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/30faaeee38d9c8e75ea47dfdd9603e80a81338460bb44c1c86ef3056a0d051d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b67616c616e6f732f66696c616d656e742d757365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kgalanos/filament-user)

Add fields ulid(do not remove id),username,phone and phone\_verified\_at to User Model and you may login with username/email in filamentphp panel. Also installs and configure

```
        "alperenersoy/filament-export": "*",
        "stechstudio/filament-impersonate": "^3.0",
        "bezhansalleh/filament-shield": "*"
```

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

[](#installation)

You can install the package via composer:

```
composer require kgalanos/filament-user
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="filament-user-migrations"
```

```
php artisan migrate
```

You can update Model User in config\\auth.php with:

```
'model' => \Kgalanos\FilamentUser\Models\User::class,
```

or you can update

```
App\Models\User
with
class User extends \Kgalanos\FilamentUser\Models\User implements FilamentUser
{
    use HasFilamentShield, HasRoles;
     /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name',
        'email',
        'password',
        'username',
        'avatar_url',
        'phone',
    ];
.....
}
```

Install the Filament Panel Builder by running

```
php artisan filament:install --panels
```

You can update App\\Providers\\Filament\\AdminPanelProvider with:

```
            ->login(\Kgalanos\FilamentUser\Filament\Pages\Auth\Login::class)
            ->registration(\Kgalanos\FilamentUser\Filament\Pages\Auth\Register::class)
            ->passwordReset()
            ->profile(\Kgalanos\FilamentUser\Filament\Pages\Auth\EditProfile::class)

            ->discoverPages(base_path('vendor/kgalanos/filament-user/src/Filament/Pages'),'Kgalanos\\FilamentUser\\Filament\\Pages')
```

You can publish the config file with:

```
php artisan vendor:publish --tag=filament-shield-config
```

```
php artisan vendor:publish --tag="filament-user-config"
```

This is the contents of the published config file:

```
return [
];
```

For the Shield

```
public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            \BezhanSalleh\FilamentShield\FilamentShieldPlugin::make()
        ]);
}
```

```
php artisan shield:install
```

If there is no user id DB it ask you to create an admin.

```
php artisan make:filament-resource User
```

change the App\\Filament\\Resources

```
class UserResource extends \Kgalanos\FilamentUser\Filament\Resources\UserResource
{

    protected static ?string $model = App\Models\User::class;

    public static function form(Form $form): Form
    {
        $form= parent::form($form);
        return $form;
    }

    public static function table(Table $table): Table
    {
        $table=parent::table($table);
        return $table;
    }
}
```

Optionally you can use Kgalanos\\FilamentUser\\Filament\\Widgets\\ApplicationInfoWidget update App\\Providers\\Filament\\AdminPanelProvider with:

```
            ->widgets([
                Widgets\AccountWidget::class,
//                Widgets\FilamentInfoWidget::class,
                ApplicationInfoWidget::class,
            ])
```

Optionally, you can publish the views,if you use ApplicationInfoWidget::class you have to publish the views
using

```
php artisan vendor:publish --tag="filament-user-views"
```

Usage
-----

[](#usage)

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)

- [Kostas Galanos](https://github.com/kgalanos)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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 ~9 days

Total

3

Last Release

975d ago

Major Versions

1.0.1 → 2.0.02023-09-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/702779b9620564a9135b136378bcaa2fcfe8313fd20c9d963ff572f92cf69946?d=identicon)[kgalanos](/maintainers/kgalanos)

---

Top Contributors

[![kgalanos](https://avatars.githubusercontent.com/u/9566036?v=4)](https://github.com/kgalanos "kgalanos (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

filamentphplaravelloginlaravelkgalanosfilament-user

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kgalanos-filament-user/health.svg)

```
[![Health](https://phpackages.com/badges/kgalanos-filament-user/health.svg)](https://phpackages.com/packages/kgalanos-filament-user)
```

###  Alternatives

[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)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[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)
