cms/app/Http/Controllers/Admin/Navigation/NavigationReorderController.php
Funky Waddle 37ed997989 feat(cms): initialize Laravel project structure and core CMS files
- Added standard Laravel directory structure and configuration.

- Included Svelte and Tailwind configuration for the admin interface.

- Added core PHPUnit and testing scripts.
2026-04-13 12:48:06 -05:00

18 lines
447 B
PHP

<?php
namespace App\Http\Controllers\Admin\Navigation;
use App\Http\Controllers\Controller;
use App\Services\NavigationService;
use Illuminate\Http\Request;
class NavigationReorderController extends Controller
{
public function __invoke(Request $request, NavigationService $navigationService)
{
$navigationService->reorder($request->input('items', []));
return back()->with('success', 'Navigation reordered.');
}
}