Make Entire Laravel Site Password Protected [Works 8.x version]

  1. Home
  2. Blog
  3. Make Entire Laravel Site Password Protected [Works 8.x version]

Make Entire Laravel Site Password Protected [Works 8.x version]

I have used the following repository
https://github.com/elic-dev/laravel-site-protection

To install:
composer require elic-dev/laravel-site-protection

Open [app/Http/Kernel.php]

Add this variable in Middleware array (protected $middleware = [];)
\ElicDev\SiteProtection\Http\Middleware\SiteProtection::class,

Add passwords on .env file
SITE_PROTECTION_PASSWORDS=password1,password2

That’s it!

Previous Post
Publish Laravel Site from Github
Next Post
React Native Installation using expo [Ubuntu 20.04 LTS]
Menu