Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MarJose123/filament-lockscreen
A filament plugin that will allows you to lock your web app page and be able to continue working after re-login, the same with your computer/laptop.
https://github.com/MarJose123/filament-lockscreen
filament laravel lockscreen php
Last synced: 3 months ago
JSON representation
A filament plugin that will allows you to lock your web app page and be able to continue working after re-login, the same with your computer/laptop.
- Host: GitHub
- URL: https://github.com/MarJose123/filament-lockscreen
- Owner: MarJose123
- License: mit
- Created: 2022-09-09T06:54:58.000Z (about 2 years ago)
- Default Branch: 2.x
- Last Pushed: 2024-07-22T05:18:28.000Z (4 months ago)
- Last Synced: 2024-07-23T05:37:59.965Z (4 months ago)
- Topics: filament, laravel, lockscreen, php
- Language: PHP
- Homepage:
- Size: 573 KB
- Stars: 42
- Watchers: 2
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-filament - MarJose123/filament-lockscreen - A filament plugin that will allow to lock your app screen and be able to continue working after login. (UI)
README
![](https://github.com/MarJose123/filament-lockscreen/blob/2.x/art/filament-lockscreen-1x.png)
**_Give an ability to the user to lock their access without logging out of the system for a break._**
[![Latest Version on Packagist](https://img.shields.io/packagist/v/marjose123/filament-lockscreen.svg?style=flat-square)](https://packagist.org/packages/marjose123/filament-lockscreen)
[![Total Downloads](https://img.shields.io/packagist/dt/marjose123/filament-lockscreen.svg?style=flat-square)](https://packagist.org/packages/marjose123/filament-lockscreen)---
:rotating_light: _For latest version that support FilamentPhp v2.x use this branch [1.x](https://github.com/MarJose123/filament-lockscreen/tree/1.x)_## Installation
You can install the package via composer:
```bash
composer require marjose123/filament-lockscreen:"^2.0"
```Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="filament-lockscreen-views"
```
Add the plugin to your panel and add the middleware `Locker::class` to your panel and you're ready to go
```php
use lockscreen\FilamentLockscreen\Lockscreen;
use lockscreen\FilamentLockscreen\Http\Middleware\Locker;public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(new Lockscreen()); // <- Add this
->authMiddleware([
// ...
Locker::class, // <- Add this
]);
}
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
If you want to contribute to Filament-lockerscreen packages, you may want to test it in a real Laravel project:
* Fork this repository to your GitHub account.
* Create a Laravel app locally.
* Clone your fork in your Laravel app's root directory.
* In the /filament-lockscreen directory, create a branch for your fix, e.g. fix/error-message.Install the packages in your app's `composer.json`:
```
{
// ...
"require": {
"marjose123/filament-lockscreen": "*",
},
"repositories": [
{
"type": "path",
"url": "filament-lockscreen"
}
],
// ...
}
```
Now, run `composer update`.## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Marjose](https://github.com/MarJose123)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.