Looking to hire Laravel developers? Try LaraJobs

laravel-gatekeeper maintained by nirandas

Description
Integrate Gatekeeper from webforms.online with your Laravel app
Author
Last update
2025/01/03 09:05 (dev-main)
License
Links
Downloads
16

Comments
comments powered by Disqus

Installation

composer require nirandas/laravel-gatekeeper

Usage

In your form validation rules add:

$request->validate([
//...
'gatekeeper_session_key' => ['required', \Nirandas\LaravelGatekeeper\Verifier::rule('Gatekeepre validation failed')],
]);

Add 2 entries in the .env file

GATEKEEPER_CLIENT_ID = "your client id"
GATEKEEPER_CLIENT_SECRET = "your gatekeeper secret"

The argument to LaravelGatekeeper::rule() is optional and is the error message to use if the validation failed.