Download the PHP package raymondwilkinson/larainvite without Composer
On this page you can find all versions of the php package raymondwilkinson/larainvite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download raymondwilkinson/larainvite
More information about raymondwilkinson/larainvite
Files in raymondwilkinson/larainvite
Package larainvite
Short Description Laravel Invitation package, existing users can invite others by email
License MIT
Homepage https://github.com/RaymondWilkinson/larainvite
Informations about the package larainvite
larainvite
User (signup) invitation package for laravel
larainvite is a laravel package, to allow existing users to invite others by email.
It generates referral code and keep track of status.
Installation
Begin by installing the package through Composer. Run the following command in your terminal:
add the package service provider in the providers array in config/app.php
:
you may add the facade access in the aliases array:
publish the migration and config file:
migrate to create user_invitation
table
edit your User
model to include larainviteTrait
Usage
You can use facade accessor to retrieve the package controller. Examples:
now create routes with refCode
, when user access that route you can use following methods
with help of new trait you have access to invitations sent by user
Events
larainvite fires several events
- 'junaidnasir.larainvite.invited'
- 'junaidnasir.larainvite.consumed'
- 'junaidnasir.larainvite.canceled'
- 'junaidnasir.larainvite.expired'
all of these events incloses invitation modal
so you can listen to these events.
include listener in EventServiceProvider.php
userInvite.php
Configurations
in config/larainvite.php
you can set default expiration time in hours from current time.
you can also change user model to be used, in larainvite.php
All versions of larainvite with dependencies
illuminate/support Version ^5.1
illuminate/database Version ^5.1
illuminate/events Version ^5.1