delino / applock
Software Application lock
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
This package is auto-updated.
Last update: 2025-04-28 02:09:47 UTC
README
Applock
Applock helps developer's or software providers monitor their application status and fire a lock event when subscription elapsed
Get Started (Installation)
>_ composer require delino/applock
App Configuration (Providers)
Locate the laravel config/app.php and add the following below
'providers' => [ ... Delino\Applock\ApplockServiceProvider::class, ] 'aliases' => [ ... 'Applock' => Delino\Applock\Facades\Applock::class, ]
Next is to clear compiled class, run the following command.
>_ composer dump-autoload
How to use (Middleware)
Create Middleware
>_ php artisan make:middleware VerifySoftware
Apply to middleware
return Applock::verifySoftware($request, $next);
Applying middleware to routes
Apply to middleware
Route::get('/', function () { return view('welcome'); })->middleware('verify_software');