1. Go to this page and download the library: Download lahirulhr/nova-lock-screen library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lahirulhr / nova-lock-screen example snippets
use Lahirulhr\NovaLockScreen;
class User extends Model {
use LockScreen;
// ...
}
public function lockScreenEnabled():bool
{
return false;
}
public function lockScreenTimeout():int
{
return 60*10; // seconds
}
php
use Lahirulhr\NovaLockScreen\NovaLockScreen;
public function tools()
{
return [
// ... ,
new NovaLockScreen,
];
}
php
// config for Nova Lock Screen
return [
// master lock
'enabled' => true,
// auth guard for lock screen
'guard' => 'web',
// if user has been inactive for this long time, the app will be locked
'lock_timeout' => 15, // second
// default background image for lock screen
'background_image' => 'https://magnificentsrilanka.com/wp-content/uploads/2022/01/sigiriya-from-pidurangala-1.jpg',
// these urls are not locked by lock screen
'excluded_urls' => [
//
],
// set custom url for lock screen
'lock_url' => 'nova-lock-screen',
];
php
public function getLockScreenImage():String
{
return 'url\to\image.jpg';
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.