Laravel Invitation Code Pack

Laravel is a package that lets you easily manage invitation codes for your application. It works by configuring middleware software that verifys the invitation code before accessing a route:

Route::get('/protected-route', function() {
//
})->middleware('protected_by_invite_codes');

By limiting this API to a specific user account, you can create an invitation code using the following API:

use \Junges\InviteCodes\Facades\InviteCodes;$invite_code = InviteCodes::create()
->expiresAt('2020-02-01')
->maxUsages(10)
->restrictUsageTo('[email protected]')
->save();

You can learn more about this package, get all the installation instructions and view the source code on GitHub at mateusjunges / laravel-invite-codes.

  Quote

KARABAY A, 2020 . Laravel Invitation Code Pack,

https://www.karabayyazilim.com/blog/php/framework/laravel/laravel-davet-kodu-paketi-2020-02-20-232856

(Accessed February 20, 2020).


  Share this post

Comments (0)

Comment

Subscribe
Sign up for the email newsletter to be the first to know about my blog posts