PHPackages                             wychoong/filament-fortify - 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. wychoong/filament-fortify

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

wychoong/filament-fortify
=========================

Laravel Fortify for Filament Admin

v0.3.4(3y ago)3313.7k↓40.9%12[2 PRs](https://github.com/wychoong/filament-fortify/pulls)MITPHPPHP ^8.0|^8.1|^8.2

Since Mar 2Pushed 2y ago2 watchersCompare

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

READMEChangelog (8)Dependencies (10)Versions (13)Used By (0)

[![](https://camo.githubusercontent.com/cfb988778d0b160977c5ebd99b98297b6b1db2f4cb5d46271f7bd0ad706d6cc1/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f46696c616d656e74253230466f72746966792e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d777963686f6f6e6725324666696c616d656e742d666f7274696679267061747465726e3d736b756c6c73267374796c653d7374796c655f32266465736372697074696f6e3d4c61726176656c2b466f72746966792b666f722b46696c616d656e742b41646d696e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313735707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/cfb988778d0b160977c5ebd99b98297b6b1db2f4cb5d46271f7bd0ad706d6cc1/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f46696c616d656e74253230466f72746966792e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d777963686f6f6e6725324666696c616d656e742d666f7274696679267061747465726e3d736b756c6c73267374796c653d7374796c655f32266465736372697074696f6e3d4c61726176656c2b466f72746966792b666f722b46696c616d656e742b41646d696e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313735707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

Laravel Fortify for Filament Admin
==================================

[](#laravel-fortify-for-filament-admin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2c44b8c33e36966eab70ebb21c43d9ec4a94235e5d411b3b27c428e8a10a6068/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f777963686f6f6e672f66696c616d656e742d666f72746966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wychoong/filament-fortify)[![GitHub Tests Action Status](https://camo.githubusercontent.com/616fdb567ec52ebca7a0db06ce68c04acddffb7f9743825ad6d07a6972bd6c7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f777963686f6f6e672f66696c616d656e742d666f72746966792f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/wychoong/filament-fortify/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5b8f06b8cfe590cc1510a50ba9ad4c201738e2621c06616d397ce01d0acfa55d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f777963686f6f6e672f66696c616d656e742d666f72746966792f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/wychoong/filament-fortify/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8575700b5b55c05772d39ed5c1c932b19a9062e7e2be20d005043bff4a9df7d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f777963686f6f6e672f66696c616d656e742d666f72746966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wychoong/filament-fortify)

This package provides the UI for using Fortify in Filament Admin Panel

Screenshots
-----------

[](#screenshots)

*Login*

[![Screenshot of Login Screen](./screenshots/login.png)](./screenshots/login.png)

*Register*

[![Screenshot of Register Screen](./screenshots/register.png)](./screenshots/register.png)

*Email Verification*

[![Screenshot of Register Screen](./screenshots/email-verification.png)](./screenshots/email-verification.png)

*Forgot Password*

[![Screenshot of Forgot Password Screen](./screenshots/forgot-password.png)](./screenshots/forgot-password.png)

*Two Factor Login*

[![Screenshot of 2fa Login Screen](./screenshots/2fa-login.png)](./screenshots/2fa-login.png)

*Two Factor Page*

[![Screenshot of 2fa Page Screen](./screenshots/2fa-page.png)](./screenshots/2fa-page.png)

*Password Confirmation*

[![Screenshot of Password Confirmation Screen](./screenshots/confirm-password.png)](./screenshots/confirm-password.png)

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

[](#installation)

You can install the package via composer:

```
composer require wychoong/filament-fortify
```

You can intallation command and run the migrations with:

```
php artisan filament-fortify:install
php artisan migrate
```

The installation command does few things to speed up the installation process:

```
- Publish Fortify files
- Publish Fortify migration
- Add FortifyServiceProvider to config/app.php

```

**As this package is only providing UI for Fortify, kindly refer [Laravel Fortify](https://laravel.com/docs/9.x/fortify) documentation to setup, eg: User model.**

Optional
--------

[](#optional)

You can publish filament-fortify config file with:

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

Optionally, you can publish the views using

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

Usage
-----

[](#usage)

This package respect the features configured in config/fortify.php, refer [Laravel Fortify](https://laravel.com/docs/9.x/fortify) to enable/disable features.

To make the installation seemless, the following configs are overrided in the package.

```
config([
    ## override filament login page
    'filament.auth.pages.login' => Auth\Login::class,
    ## force fortify view enabled
    'fortify.views' => true,
    ## force fortify to use filament home_url
    'fortify.home' => config('filament.home_url'),
]);
```

#### Email Verification

[](#email-verification)

[![Screenshot of Email Verification Screen](./screenshots/email-verification.png)](./screenshots/email-verification.png)

To allow user access only after email verified, enable the feature in config/fortify.php and update config/filament.php

```
'middleware' => [
    'auth' => [
        // ...
        'verified'
    ],
    // ...
]

## update your User model

use Illuminate\Contracts\Auth\MustVerifyEmail;

class User extends Authenticatable implements FilamentUser, MustVerifyEmail
{
    // ...
}
```

#### Password Confirmation

[](#password-confirmation)

[![Screenshot of Password Confirmation Screen](./screenshots/confirm-password.png)](./screenshots/confirm-password.png)

To request user password confirmation before access a Page/Resource, add

```
protected static string | array $middlewares = ['password.confirm'];
```

to relevant Page/Resource.

#### 2FA

[](#2fa)

Update your User model

```
use Laravel\Fortify\TwoFactorAuthenticatable;

class User extends Authenticatable implements FilamentUser
{
    // ...
    use TwoFactorAuthenticatable;
    // ...
}
```

A simple enable/disable user's 2fa page is included.

You can change the page's title, navigation group, navigation label in service provider:

```
use WyChoong\FilamentFortify\Facades\FilamentFortify;

public function boot()
{
    FilamentFortify::navigationGroup(__('your-nav-group'));
    FilamentFortify::navigationLabel(__('your-nav-label'));
    FilamentFortify::pageTitle(__('your-page-title'));
}
```

To disable it, publish the config file and set:

```
    'register-page' => false,
```

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

[](#customization)

To use your own form, publish the config file and set your own livewire component

```
# config/filament-fortify.php
use App\Http\Livewire\Login;

return [
    // ...
    'auth' => [
        'login' =>  Login::class,
        // ...
    ],
    // ...
];

# app/Http/Livewire/Login.php
namespace App\Http\Livewire\Auth;

use WyChoong\FilamentFortify\Http\Livewire\Auth\Login as BaseLogin;

class Login extends BaseLogin{

    protected function getFormSchema(): array
    {
        return [
            // your form schema
        ];
    }
}
```

### Theme

[](#theme)

Depends on your project setup, you might register the css file with `Filament::serving` as per [Filament Documentation](https://filamentphp.com/docs/2.x/admin/appearance#building-themes), then you need to publish the `fortify.config` and add `DispatchServingFilamentEvent::class` to the middleware for Fortify's routes.

```
use Filament\Http\Middleware\DispatchServingFilamentEvent;

return [
    // ...
    'middleware' => ['web', DispatchServingFilamentEvent::class],
    //...
];
```

### Render hooks

[](#render-hooks)

Make use of Filament's render hook to register additional content without publishing views.

Example with [Filament-Socialite](https://github.com/DutchCodingCompany/filament-socialite)

```
## in Service Provider file
public function boot()
{
    Filament::registerRenderHook(
        'filament-fortify.login.end',
        fn (): string => Blade::render('@livewire(\'filament-socialite.buttons\')'),
    );
}
```

[![Screenshot of hook for socialite](https://user-images.githubusercontent.com/67364036/171989863-67e10be6-6619-4bb0-b258-2fd64edecc00.png)](https://user-images.githubusercontent.com/67364036/171989863-67e10be6-6619-4bb0-b258-2fd64edecc00.png)

Available hooks

- filament-fortify.login.start
- filament-fortify.login.end

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [wychoong](https://github.com/wychoong)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~39 days

Recently: every ~65 days

Total

10

Last Release

1183d ago

PHP version history (2 changes)v0.1.0PHP ^8.0

v0.3.4PHP ^8.0|^8.1|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/67364036?v=4)[wychoong](/maintainers/wychoong)[@wychoong](https://github.com/wychoong)

---

Top Contributors

[![wychoong](https://avatars.githubusercontent.com/u/67364036?v=4)](https://github.com/wychoong "wychoong (54 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")[![marcoboers](https://avatars.githubusercontent.com/u/3316595?v=4)](https://github.com/marcoboers "marcoboers (3 commits)")[![abkrim](https://avatars.githubusercontent.com/u/1238625?v=4)](https://github.com/abkrim "abkrim (2 commits)")[![rjocoleman](https://avatars.githubusercontent.com/u/154176?v=4)](https://github.com/rjocoleman "rjocoleman (1 commits)")

---

Tags

laravelwychoongfilament-fortify

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/wychoong-filament-fortify/health.svg)

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

###  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)[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)

PHPackages © 2026

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