Doorman – Limit access to your Laravel applications through invite codes

Doorman – Limit access to your Laravel applications through invite codes

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
Doorman::generate()->make();

// Generate five invites
Doorman::generate()->times(5)->make();

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

// Make an invite that expires in 14 days.
Doorman::generate()->expiresIn(14)->make();

// Or even bind it to a specific person
Doorman::generate()->for('me@example.org')->make();

Redeeming is just as simple:

Doorman::redeem('ABCDE');
// or
Doorman::redeem('ABCDE', 'me@example.org');

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


Filed in: Laravel Packages


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Laravel / Vue.JS Developer - Join an amazing team!
Remote
JTR Solutions
Mid / Sen. Software Engineer
Clearwater, FL
ShineOn
Remote PHP / Laravel Developer
Remote
SpringboardVR
Senior PHP/Laravel Developer: Your Dream Work Environment
Remote
iPhone Photography School
Senior Laravel Developer
Leidseplein, Amsterdam
Orderchamp.com
PHP Developer
Remote
X-Team
Senior Laravel Developer (Canada and India)
London, Ontario, Canada
Factory Bucket Inc.