Skip to content

distortion-rocks/laravel-invite

Repository files navigation

Laravel Invitations [WIP]

Latest Version on Packagist Build Status Total Downloads

Laravel invite provides a clean and simple library to add invitations to any Laravel Application.

Installation

You can install the package via composer:

# Still in progress

Usage

Create a new invite

$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');

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please open a new github issue and provide a detailed outline of the problem you are facing.

Credits

License

The MIT License (MIT). Please see License File for more information.

Releases

No releases published

Packages

No packages published

Languages