PHPackages                             lahirulhr/nova-lock-screen - 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. lahirulhr/nova-lock-screen

ActiveLibrary[Security](/categories/security)

lahirulhr/nova-lock-screen
==========================

A simple lock screen for laravel nova.

1.0.3(2y ago)1810.0k↓18.4%1MITPHPPHP ^7.3|^8.0

Since Aug 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lahirulhr/nova-lock-screen)[ Packagist](https://packagist.org/packages/lahirulhr/nova-lock-screen)[ RSS](/packages/lahirulhr-nova-lock-screen/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Lock Screen for Laravel Nova
============================

[](#lock-screen-for-laravel-nova)

[![](https://github.com/lahirulhr/nova-lockscreen/raw/29d54861af1a3dabde1d59bab75a7562615f38a8/cover.png)](https://github.com/lahirulhr/nova-lockscreen/blob/29d54861af1a3dabde1d59bab75a7562615f38a8/cover.png)

[![Latest Stable Version](https://camo.githubusercontent.com/d6a104cdf6ad9e0cc47f348912201780d3a8dcf11aaddbfd405c87616dbd90be/687474703a2f2f706f7365722e707567782e6f72672f6c61686972756c68722f6e6f76612d6c6f636b2d73637265656e2f76)](https://packagist.org/packages/lahirulhr/nova-lock-screen) [![Total Downloads](https://camo.githubusercontent.com/2396d5e56bab73eb28b9ca49a0607c1af18538211f02f2ebb19235f75234f31e/687474703a2f2f706f7365722e707567782e6f72672f6c61686972756c68722f6e6f76612d6c6f636b2d73637265656e2f646f776e6c6f616473)](https://packagist.org/packages/lahirulhr/nova-lock-screen) [![Latest Unstable Version](https://camo.githubusercontent.com/29ce22274805a8363e899b344ffd615c9e82b00faaddd5f63bcc8f8570309630/687474703a2f2f706f7365722e707567782e6f72672f6c61686972756c68722f6e6f76612d6c6f636b2d73637265656e2f762f756e737461626c65)](https://packagist.org/packages/lahirulhr/nova-lock-screen) [![License](https://camo.githubusercontent.com/409f0c473f486ee50227e0e93b1e8238f500f29f734b0bdfad252587335d5849/687474703a2f2f706f7365722e707567782e6f72672f6c61686972756c68722f6e6f76612d6c6f636b2d73637265656e2f6c6963656e7365)](https://packagist.org/packages/lahirulhr/nova-lock-screen) [![PHP Version Require](https://camo.githubusercontent.com/06e71ad15dd1e5be73a1dce4e52b601289a38cbe7727b3dc60baa6e7af23c16e/687474703a2f2f706f7365722e707567782e6f72672f6c61686972756c68722f6e6f76612d6c6f636b2d73637265656e2f726571756972652f706870)](https://packagist.org/packages/lahirulhr/nova-lock-screen)

The lock screen is a simple security feature that works as locking overlay over the NOVA dashboard. If the user is idle for given timeout, the lockscreen will be activated automatically. Then the user needs to enter login password again to continue their session.

### View

[](#view)

[![](https://github.com/lahirulhr/nova-lock-screen/raw/3c84ee30a83159fca5271fd93c20174ed7b7b072/sample.png)](https://github.com/lahirulhr/nova-lock-screen/blob/3c84ee30a83159fca5271fd93c20174ed7b7b072/sample.png)

### How to use

[](#how-to-use)

1. Run composer `composer require lahirulhr/nova-lock-screen` to install the package
2. Publish config (Optional) `php artisan vendor:publish --tag="nova-lock-screen.config"`
3. Use `LockScreen` trait in User model

```
use Lahirulhr\NovaLockScreen;

class User extends Model {

  use LockScreen;

  // ...

}
```

4. Register the Tool in Nova service provider

```
use Lahirulhr\NovaLockScreen\NovaLockScreen;

public function tools()
    {
        return [
            // ... ,
            new NovaLockScreen,
        ];
    }
```

5. Register middleware in `nova.php`

```
'middleware' => [
      // ... ,
      \Lahirulhr\NovaLockScreen\Http\Middleware\LockScreen::class,
],
```

6. Done

### Config

[](#config)

```
