{"repo":"junaidnasir/larainvite","free":true,"listed":false,"github":"https://github.com/junaidnasir/larainvite","clone":"git clone https://github.com/junaidnasir/larainvite.git","description":"MAINTANER REQUIRED: User (signup) invitation package for laravel","language":"PHP","stars":142,"topics":["laravel","invitation","signup"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Larainvite Larainvite is a Laravel package that allows existing users to invite others via email. It generates a one-time invitation code that can be sent as an invite link, and keeps track of the invitation status. - v12 supports Laravel 12 - v7 supports Laravel 11 - v6 supports Laravel 10 - v5 supports Laravel 9 - v4 supports Laravel 8 - v3 supports Laravel 5.8+, Laravel 6.0 and Laravel 7.0 - v2 supports Laravel 5.0 to 5.8 - v1 supports Laravel 4. 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\\Events\\Invited Junaidnasir\\Larainvite\\Events\\InvitationConsumed Junaidnasir\\Larainvite\\Events\\InvitedCanceled Junaidnasir\\Larainvite\\Events\\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 curre","default_branch":null,"files":null,"tree":[],"storefront":"/r/junaidnasir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/junaidnasir/larainvite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}