mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
18 lines
322 B
PHP
18 lines
322 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use App\Http\Controllers\SetupController;
|
|
|
|
class CheckInstallation
|
|
{
|
|
public function handle($request, \Closure $next)
|
|
{
|
|
if (SetupController::checkTablesExist()) {
|
|
return response()->view('setup.locked');
|
|
}
|
|
|
|
return $next($request);
|
|
}
|
|
}
|