Built as a Laravel package with an easy JSON api route system.
- Api route to list Invites
- Api route to create an Invite
- Api route to delete and Invitaion
- Frosting class to handle all other needed features
With Composer
composer require mission4/frosting
Frosting::invite('user@example.com');
This creates a new Invitation
in the database with the users email and a unique code.
You can also then send the Invitation using the send()
method on the returned Invitation.
Frosting::invite('user@example.com')->send();
This will use the default mail driver to send an email to user@example.com
- Unique_id
- user_id
Invite a person with $email
.
R
65B8
eturns an instance of the Invite::class
Get a collection of all the invites.
Delete any invites with the said email.
Resolve an Invite by the Unique Identifier.
Confirm there is an invitation for the said email.
Register the Invite Observer to add a creating event for generating the Unique IDs.