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