PHPackages                             concept7/filament-invite - 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. concept7/filament-invite

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

concept7/filament-invite
========================

Handles invites so setup your users' passwords.

v2.0.2(3mo ago)01.9k1[1 issues](https://github.com/concept7/filament-invite/issues)[3 PRs](https://github.com/concept7/filament-invite/pulls)MITPHPPHP ^8.2

Since Jun 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/concept7/filament-invite)[ Packagist](https://packagist.org/packages/concept7/filament-invite)[ Docs](https://github.com/concept7/filament-invite)[ GitHub Sponsors](https://github.com/concept7)[ RSS](/packages/concept7-filament-invite/feed)WikiDiscussions develop Synced today

READMEChangelog (4)Dependencies (30)Versions (20)Used By (0)

Handles invites so setup your users' passwords.
===============================================

[](#handles-invites-so-setup-your-users-passwords)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2d339ebfdc9548ea25744f89dbe33e2bf7fb2e868f8d4c874d9f3746a7b6d0c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e63657074372f66696c616d656e742d696e766974652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/concept7/filament-invite)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c6475e123200f62fc031ad9b36219cd87cb35cd7f95b7e87746e1156e75c867a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f636f6e63657074372f66696c616d656e742d696e766974652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/concept7/filament-invite/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/de4d4c739010ccd508c74427a0175f0df562d0f0f20f719b96986f21c0d5505a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f636f6e63657074372f66696c616d656e742d696e766974652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/concept7/filament-invite/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8058911b3ebfccd219f3ead7c130cb2fc4efb265152a21a93123e471e19de83f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e63657074372f66696c616d656e742d696e766974652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/concept7/filament-invite)

The package will be sending out invite emails by listening to the 'created'-event on user model. The user can click a link in the email to setup their password. Also included is a expired check on the link. The link will be as following: `domain.tld/invite/accept?acceptId=&hash=`

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

[](#installation)

You can install the package via composer:

```
composer require concept7/filament-invite
```

Register the plugin in your panel provider:

```
use Concept7\FilamentInvite\InvitePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
       ->plugin(new InvitePlugin());
}
```

You can publish and run the migrations with:

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

Optionally, you can publish the views using

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

Usage
-----

[](#usage)

### Add Invitable trait to User model

[](#add-invitable-trait-to-user-model)

```
use Concept7\FilamentInvite\Models\Traits\Invitable;
```

### Create a mailable

[](#create-a-mailable)

In app/Mail, create SendInviteMail.php, e.g.

```
