- Added `ConnectionProviderData`, `NavItemData`, and `NavSubItemData` DTOs for structured data handling. - Implemented CRUD operations for `ConnectionProviderService`, including transaction-safe create, update, and delete methods. - Introduced Livewire components for ConnectionProvider list, edit, and create pages with dynamic and reusable UI elements. - Refactored routes to consolidate paths under the `apps` prefix and updated navigation to dynamically include new sections for providers. - Enhanced sidebar with structured submenu for ConnectionProviders and Settings using dynamic collections. - Updated existing Create and Edit templates to use consistent route naming and validation handling. - Replaced hardcoded navigation items with dynamically generated structures leveraging the `NavItemData` collection.
29 lines
907 B
PHP
29 lines
907 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Livewire\Settings\{Appearance, Profile, Security};
|
|
use Illuminate\Support\Facades\Route;
|
|
use Laravel\Fortify\Features;
|
|
|
|
Route::middleware(['auth'])->group(function (): void {
|
|
Route::redirect('settings', 'settings/profile')->name('settings');
|
|
|
|
Route::livewire('settings/profile', Profile::class)->name('profile.edit');
|
|
});
|
|
|
|
Route::middleware(['auth', 'verified'])->group(function (): void {
|
|
Route::livewire('settings/appearance', Appearance::class)->name('appearance.edit');
|
|
|
|
Route::livewire('settings/security', Security::class)
|
|
->middleware(
|
|
when(
|
|
Features::canManageTwoFactorAuthentication()
|
|
&& Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
|
|
['password.confirm'],
|
|
[],
|
|
),
|
|
)
|
|
->name('security.edit');
|
|
});
|