PHPackages                             tomatophp/filament-accounts-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. tomatophp/filament-accounts-auth

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

tomatophp/filament-accounts-auth
================================

The auth package from DevDojo for Filament Account Builder.

1.0.0(1y ago)0114[4 PRs](https://github.com/tomatophp/filament-accounts-auth/pulls)1MITBladePHP ^8.2|^8.3CI passing

Since Mar 31Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/tomatophp/filament-accounts-auth)[ Packagist](https://packagist.org/packages/tomatophp/filament-accounts-auth)[ Docs](https://github.com/devdojo/auth)[ GitHub Sponsors](https://github.com/3x1io)[ RSS](/packages/tomatophp-filament-accounts-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (26)Versions (6)Used By (1)

[![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-accounts-auth/master/arts/3x1io-tomato-accounts-auth.jpg)](https://raw.githubusercontent.com/tomatophp/filament-accounts-auth/master/arts/3x1io-tomato-accounts-auth.jpg)

Filament Accounts Builder Auth
------------------------------

[](#filament-accounts-builder-auth)

A Clone of [DevDojo Auth](https://github.com/devdojo/auth) with support of RTL, Translations and using [Filament Accounts Builder](https://github.com/tomatophp/filament-accounts) as an auth driver.

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

[](#screenshots)

[![Login](https://raw.githubusercontent.com/tomatophp/filament-accounts-auth/master/arts/login.png)](https://raw.githubusercontent.com/tomatophp/filament-accounts-auth/master/arts/login.png)[![Register](https://raw.githubusercontent.com/tomatophp/filament-accounts-auth/master/arts/register.png)](https://raw.githubusercontent.com/tomatophp/filament-accounts-auth/master/arts/register.png)

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

[](#installation)

You can install this package into any new Laravel application, or any of the available [Laravel Starter Kits](https://devdojo.com/auth/docs/install).

```
composer require tomatophp/auth

```

After the package has been installed you'll need to publish the authentication assets, configs, and more:

```
php artisan vendor:publish --tag=auth:assets
php artisan vendor:publish --tag=auth:config
php artisan vendor:publish --tag=auth:ci
php artisan vendor:publish --tag=auth:migrations

```

Next, run the migrations:

```
php artisan migrate
```

Finally extend the Devdojo User Model:

```
use Devdojo\Auth\Models\User as AuthUser;

class User extends AuthUser

```

in your `App\Models\User` model.

Now, you're ready to rock! Auth has just been installed and you'll be able to visit the following authentication routes:

- Login (project.test/auth/login)
- Register (project.test/auth/register)
- Forgot Password (project.test/auth/register)
- Password Reset (project.test/auth/password/reset)
- Password Reset Token (project.test/auth/password/ReAlLyLoNgPaSsWoRdReSeTtOkEn)
- Password Confirmation (project.test/auth/password/confirm)
- Two-Factor Challenge (project.test/auth/two-factor-challenge)

You'll also have access to the Two Factor Setup page

- Two-Factor Setup (project.test/user/two-factor-authentication)

When you need to logout, you can visit the Logout route

- Logout Route (project.test/auth/logout)

(Optional) Adding the HasSocialProviders Trait.
-----------------------------------------------

[](#optional-adding-the-hassocialproviders-trait)

You can add all the social auth helpers to your user model by including the following Trait:

```
