PHPackages                             jhacobs/laravel-invites - 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. jhacobs/laravel-invites

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

jhacobs/laravel-invites
=======================

Invite users to your laravel application

v1.0.0(5y ago)19MITPHPPHP ^7.2|^8.0

Since Jan 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jhacobs/laravel-invites)[ Packagist](https://packagist.org/packages/jhacobs/laravel-invites)[ RSS](/packages/jhacobs-laravel-invites/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel Invites
===============

[](#laravel-invites)

Invite users to your application

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

[](#installation)

You can install this package via composer

```
composer require jhacobs/laravel-invites

```

Publish the invites config file

```
php artisan vendor:publish --provider="Invites\InviteServiceProvider" --tag=config

```

Publish the migration

```
php artisan vendor:publish --provider="Invites\InviteServiceProvider" --tag=migrations

```

Now run `php artisan migrate` to create the invites table.

Usage
-----

[](#usage)

### Prepare your model

[](#prepare-your-model)

Add the CanBeInvited interface to your user model

```
use Jhacobs\Invites\Contracts\CanBeInvited;

class User extends Authenticatable implements CanBeInvited
```

Implement the getEmailForInvites method, so the package knows which field is has the user's email.

```
public function sendInviteNotification(string $token)
{
    return 'email';
}
```

Implement the sendInviteNotification to send the invite notification to a user.

```
public function sendInviteNotification(string $token)
{
    $this->notify(new InviteUserNotification($token));
}
```

### Send invite notification

[](#send-invite-notification)

To send the invite notification, call the sendInviteLink method on the Invite facade.

```
use Jhacobs\Invites\Facades\Invite;
use App\Models\User;

$user = User::find(1);

Invite::sendInviteLink($user);
```

### Create a user's password

[](#create-a-users-password)

To create a user's password, call the createPassword method on the Invite facade.

You must pass the user's email, the unhashed token created by the sendInviteLink method and the new password for the user.

```
use Jhacobs\Invites\Facades\Invite;

Invite::createPassword($request->get('email'), $request->get('token'), $request->get('password'), function (User $user, string $password) {
    $user->password = Hash::make($password);
    $user->save();
});
```

License
-------

[](#license)

This project is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1982d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14801904?v=4)[Jacob Aretz](/maintainers/jhacobs)[@jhacobs](https://github.com/jhacobs)

---

Top Contributors

[![jhacobs](https://avatars.githubusercontent.com/u/14801904?v=4)](https://github.com/jhacobs "jhacobs (8 commits)")

---

Tags

laravelinviteslaravel-invites

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jhacobs-laravel-invites/health.svg)

```
[![Health](https://phpackages.com/badges/jhacobs-laravel-invites/health.svg)](https://phpackages.com/packages/jhacobs-laravel-invites)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M195](/packages/laravel-ai)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)

PHPackages © 2026

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