delino/applock

Software Application lock

Installs: 44

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:HTML

1.0.2 2019-02-27 12:30 UTC

This package is auto-updated.

Last update: 2024-09-28 01:02:49 UTC


README

Build Status Total Downloads Latest Stable Version License

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');