mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Refactored routes and topbar example to better paths/url
This commit is contained in:
+3
-3
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
namespace App\Livewire\Panels\Navigation;
|
||||
|
||||
use Filament\Navigation\MenuItem;
|
||||
use Filament\Pages\Page;
|
||||
|
||||
class Topbar extends Page
|
||||
class UserMenuCustomization extends Page
|
||||
{
|
||||
protected static string $view = 'livewire.topbar';
|
||||
protected static string $view = 'livewire.panels.navigation.users-menu-customization';
|
||||
|
||||
public function mount()
|
||||
{
|
||||
@@ -7,8 +7,8 @@ use App\Livewire\Forms\LayoutDemo as FormsLayoutDemo;
|
||||
use App\Livewire\Infolists\EntriesDemo;
|
||||
use App\Livewire\Infolists\LayoutDemo as InfolistsLayoutDemo;
|
||||
use App\Livewire\NotificationsDemo;
|
||||
use App\Livewire\Panels\Navigation\UserMenuCustomization;
|
||||
use App\Livewire\TablesDemo;
|
||||
use App\Livewire\Topbar;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
@@ -23,11 +23,22 @@ use Illuminate\Support\Facades\Route;
|
||||
*/
|
||||
|
||||
Route::get('/actions', ActionsDemo::class);
|
||||
Route::get('/forms/fields', FieldsDemo::class);
|
||||
Route::get('/forms/getting-started', GettingStartedDemo::class);
|
||||
Route::get('/forms/layout', FormsLayoutDemo::class);
|
||||
Route::get('/infolists/entries', EntriesDemo::class);
|
||||
Route::get('/infolists/layout', InfolistsLayoutDemo::class);
|
||||
Route::get('/notifications', NotificationsDemo::class);
|
||||
Route::get('/tables', TablesDemo::class);
|
||||
Route::get('/topbar', Topbar::class);
|
||||
|
||||
Route::group(['prefix' => 'forms'], function () {
|
||||
Route::get('fields', FieldsDemo::class);
|
||||
Route::get('getting-started', GettingStartedDemo::class);
|
||||
Route::get('layout', FormsLayoutDemo::class);
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'infolists'], function () {
|
||||
Route::get('entries', EntriesDemo::class);
|
||||
Route::get('layout', InfolistsLayoutDemo::class);
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'panels'], function () {
|
||||
Route::group(['prefix' => 'navigation'], function () {
|
||||
Route::get('user-menu-customization', UserMenuCustomization::class);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user