mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-08 11:57:52 +08:00
✨ 画廊页面
This commit is contained in:
parent
09600cf561
commit
aa122a394d
@ -5,7 +5,6 @@ namespace App\Console\Commands;
|
|||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
use Illuminate\Support\Facades\Artisan;
|
||||||
use Illuminate\Support\Facades\Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use Illuminate\Support\Facades\DB;
|
|
||||||
|
|
||||||
class Install extends Command
|
class Install extends Command
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,11 @@ class CheckIsInstalled
|
|||||||
{
|
{
|
||||||
// 检测程序是否安装
|
// 检测程序是否安装
|
||||||
if (! file_exists(base_path('installed.lock'))) {
|
if (! file_exists(base_path('installed.lock'))) {
|
||||||
return redirect('install');
|
if (! $request->expectsJson()) {
|
||||||
|
return redirect('install');
|
||||||
|
} else {
|
||||||
|
return $this->error('It has already been installed.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
Loading…
Reference in New Issue
Block a user