PHPackages                             adaptivemedia/laravel-site-lock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. adaptivemedia/laravel-site-lock

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

adaptivemedia/laravel-site-lock
===============================

Lock access to a site

2.3.0(1y ago)022.9k↓33.3%MITPHPPHP ^8.0

Since Nov 19Pushed 1y agoCompare

[ Source](https://github.com/adaptivemedia/laravel-site-lock)[ Packagist](https://packagist.org/packages/adaptivemedia/laravel-site-lock)[ Docs](https://github.com/adaptivemedia/laravel-site-lock)[ RSS](/packages/adaptivemedia-laravel-site-lock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (14)Used By (0)

SiteLock - prevent access to your site
======================================

[](#sitelock---prevent-access-to-your-site)

Sometimes you don't want anybody to access your site. Use cases include:

- Site is under development
- Site is on a staging/testing server
- Site is an internal tool

This package adds a global web middleware that protects all routes until it's unlocked.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require adaptivemedia/laravel-site-lock
```

You *MUST* publish the config file with:

```
php artisan vendor:publish --provider="Adaptivemedia\SiteLock\SiteLockServiceProvider" --tag="config"
```

This is the content of the config file:

```
