- Reverts the schneespur/ subdirectory restructure (b8e426b)
- Restores package.json and vite.config.js (needed for npm build, were
removed in an earlier cleanup before the restructure)
- Updates public/build/ assets with current Vite output (new content hashes)
26 lines
645 B
PHP
26 lines
645 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Setting;
|
|
use App\Services\Extension\DashboardWidgetRegistry;
|
|
use Illuminate\Http\RedirectResponse;
|
|
use Illuminate\View\View;
|
|
|
|
class DashboardController extends Controller
|
|
{
|
|
public function dismissOnboarding(): RedirectResponse
|
|
{
|
|
Setting::set('onboarding_dismissed', '1');
|
|
|
|
return redirect()->route('admin.dashboard');
|
|
}
|
|
|
|
public function index(DashboardWidgetRegistry $widgetRegistry): View
|
|
{
|
|
$widgets = $widgetRegistry->getWidgets();
|
|
|
|
return view('admin.dashboard', compact('widgets'));
|
|
}
|
|
}
|