sebastianjung / laravel-vault-423
A Customizable Password Protection Middleware For Laravel Applications That Fits Your Brand.
Installs: 212
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 15
Language:JavaScript
Requires
- php: >=5.6.0
- laravel/framework: >=5.1
- dev-master
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.6
- 0.5.1
- 0.5.0
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/tar-2.2.2
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/gsap-3.6.0
- dev-dependabot/npm_and_yarn/axios-0.21.1
- dev-dependabot/npm_and_yarn/node-sass-4.13.1
- dev-dependabot/npm_and_yarn/acorn-5.7.4
- dev-dependabot/npm_and_yarn/fstream-1.0.12
- dev-dependabot/npm_and_yarn/lodash.mergewith-4.6.2
- dev-dependabot/npm_and_yarn/mixin-deep-1.3.2
This package is auto-updated.
Last update: 2025-06-11 05:36:23 UTC
README
Please use another password protection tool for your websites
laravel-vault-423
A Password Protection Middleware For Laravel Applications That Fits Your Brand.
DEMO: vault-423.ultrabold.de // PASSWORD: vault423
Features
- multiple passwords (per .env file)
- automated revoke of access by simply removing the password from the password list
- IP whitelisting (saves time when clearing cookie cache often times ;P)
- fully customizable (Custom Logo, Font Family, Colors and more ...
- neat animations
- works in common browser (including our most beloved IE11)
CONTENTS
Installation
Composer
composer require sebastianjung/laravel-vault-423
Middleware
Add the following line to your $middlewareGroups
Array inside your Kernel.php
protected $middlewareGroups = [
'web' => [
...,
\SebastianJung\Vault423\Http\Middleware\Vault423::class
],
...
]
Creating Passwords
Inside your .env
file create a line as follows:
VAULT_423_PASSWORDS=password1,password2
If no password / string is provided the page is accessible to anyone.
Laravel < 5.5
Remember to add the ServiceProvider of this package to your $providers
array inside your app.php
config file.
SebastianJung\Vault423\Vault423ServiceProvider::class
Laravel < 5.2
Because there is no $middlewareGroups
Array inside your Kernel.php
you need to add a 'vault'
key to the $routeMiddleware
Array like so:
protected $routeMiddleware = [
...,
'vault' => \SebastianJung\Vault423\Http\Middleware\Vault423::class
]
After that you need to wrap the Routes you want to protect with the following:
Route::group('middleware' => ['vault']], function () {
Route::get('/', 'SiteController@index');
});
Configuration
To publish the config file for this package simply execute
php artisan vendor:publish --provider='SebastianJung\Vault423\Vault423ServiceProvider'
Whitelisting
Inside your config file there is an Array called whitelist
. Just fill it with some IPs as strings like so:
'whitelist' => ['127.0.0.1', '192.168.0.1']
Customization
Available customizations are:
- meta title tag
- logo
- logo size
- welcome text
- link to some webpage
- colors
- font families
- and if that is not enough for you: a custom css option
Further information is available in the vault-423.php config file.
Troubleshooting
Call To Undefined Method isDeferred()
You may need to call the package discovery of laravel again like so:
php artisan package:discover