mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-27 06:29:19 +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);
|
|
}
|
|
}
|