Laravel invite provides a clean and simple library to add invitations to any Laravel Application.
You can install the package via composer:
# Still in progress
$user = Auth::user()
use Distortion\LaravelInvite\Facades\Invite;
/**
* Will create & save a new invite and return the invite code for use later.
* @return string code
*/
$code = Invite::invite('invite@example.com', $user->id);
/**
* Creates an invite with a custom expiration date/time
* @return string code
*/
$code = Invite::invite('invite@example.com', $user->id, '2021-04-11 12:22:11');
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please open a new github issue and provide a detailed outline of the problem you are facing.
The MIT License (MIT). Please see License File for more information.