WuYongJie 9595267ee7
Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
chore: 导入 Akaunting 初始源码与团队协作规则
2026-07-20 18:20:25 +08:00

59 lines
1.1 KiB
PHP

<?php
namespace App\Http\Controllers\Wizard;
use App\Abstracts\Http\Controller;
use App\Traits\Modules;
class Finish extends Controller
{
use Modules;
/**
* Instantiate a new controller instance.
*/
public function __construct()
{
// Add CRUD permission check
$this->middleware('permission:read-admin-panel')->only('index', 'show', 'edit', 'export');
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function index()
{
setting()->set('wizard.completed', 1);
// Save all settings
setting()->save();
$data = [
'query' => [
'limit' => 6
]
];
$modules = $this->getFeaturedModules($data);
return $this->response('wizard.finish.index', compact('modules'));
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function update()
{
setting()->set('wizard.completed', 1);
// Save all settings
setting()->save();
return response()->json([]);
}
}