Doorman – Limit access to your Laravel applications through invite codes


April 29th, 2017

Doorman is a Laravel package that allows you to limit access to your Laravel applications by using invite codes.

Once installed you can generate and redeem invites through the Doorman facade and it includes support for Form Request validation.

You can generate new invites like this:

// Generate a single invite

// Generate five invites

// Make an invite that expires on a specific date.
$date = Carbon::now('UTC')->addDays(7);

// Make an invite that expires in 14 days.

// Or even bind it to a specific person

Redeeming is just as simple:

// or
Doorman::redeem('ABCDE', '');

If you’d like to start a private invite system to your app check out the Doorman package on Github.

Filed in:

Eric L. Barnes

Eric is the creator of Laravel News and has been covering Laravel since 2012.