- 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.
26 lines
1008 B
PHP
26 lines
1008 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::view('/', 'welcome')->name('home');
|
|
|
|
Route::group(['middleware' => ['auth', 'verified']], function (): void {
|
|
Route::livewire('dashboard', 'pages::dashboard')->name('dashboard');
|
|
|
|
Route::prefix('apps')->name('apps.')->group(function (): void {
|
|
Route::livewire('create', 'pages::connected-apps.create')->name('create');
|
|
Route::livewire('{id}/edit', 'pages::connected-apps.edit')->name('edit');
|
|
Route::livewire('/', 'pages::connected-apps.index')->name('index');
|
|
|
|
Route::prefix('connection-providers')->name('connectionProviders.')->group(function (): void {
|
|
Route::livewire('create', 'pages::connecton-providers.create')->name('create');
|
|
Route::livewire('{slug}/edit', 'pages::connecton-providers.edit')->name('edit');
|
|
Route::livewire('index', 'pages::connecton-providers.index')->name('index');
|
|
});
|
|
});
|
|
});
|
|
|
|
require __DIR__.'/settings.php';
|