mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2025-01-19 10:17:24 +08:00
19 lines
376 B
PHP
19 lines
376 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Middleware;
|
||
|
|
||
|
use Illuminate\Filesystem\Filesystem;
|
||
|
|
||
|
class CheckInstallation
|
||
|
{
|
||
|
public function handle($request, \Closure $next)
|
||
|
{
|
||
|
$hasLock = resolve(Filesystem::class)->exists(storage_path('install.lock'));
|
||
|
if ($hasLock) {
|
||
|
return response()->view('setup.locked');
|
||
|
}
|
||
|
|
||
|
return $next($request);
|
||
|
}
|
||
|
}
|