PHPackages                             httpoz/locked - 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. [Security](/categories/security)
4. /
5. httpoz/locked

ActiveLibrary[Security](/categories/security)

httpoz/locked
=============

Laravel package to lock an app after x - date.

v8.0.0(5y ago)06031MITPHPPHP ^7.3|^8.0CI failing

Since Nov 1Pushed 5y agoCompare

[ Source](https://github.com/httpoz/locked)[ Packagist](https://packagist.org/packages/httpoz/locked)[ RSS](/packages/httpoz-locked/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Locked
======

[](#locked)

Laravel package to lock an app after x - date.

[![Build Status](https://camo.githubusercontent.com/1962b892aeda949f159321de519f4df7ca90bc43bf172b3bac951b2bfd7852a2/68747470733a2f2f7472617669732d63692e6f72672f687474706f7a2f6c6f636b65642e737667)](https://travis-ci.org/httpoz/locked)[![Total Downloads](https://camo.githubusercontent.com/24a176991ca0233e097a7c370f0ea8cfb405fcae0aeaaeadb9cdabac7553c82a/68747470733a2f2f706f7365722e707567782e6f72672f687474706f7a2f6c6f636b65642f642f746f74616c2e737667)](https://packagist.org/packages/httpoz/locked)[![FOSSA Status](https://camo.githubusercontent.com/f9681cef236eb6efdc3023136d5595de33c85eb99ebf438d45e04cf0a69c14fd/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246687474706f7a2532466c6f636b65642e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fhttpoz%2Flocked?ref=badge_shield)

Composer
========

[](#composer)

```
composer require httpoz/locked:^v8.0
```

Config File
===========

[](#config-file)

To publish the package config's file to your application. Run this command inside your terminal.

```
php artisan vendor:publish --provider="HttpOz\Locked\LockedServiceProvider"

```

This package allows you to define your own rules that will determine whether the routes using the middleware should be locked or not. To get started open `config/locked.php` and set enabled to `true`. Next list your rule classes in the rules array.

Rules
-----

[](#rules)

Your custom rule classes need to extend `HttpOz\Locked\Rules\Rule`;

```
