add filament dashboard

This commit is contained in:
xiaomlove
2022-06-28 13:33:18 +08:00
parent bccea81e44
commit 6fb3d95ef0
17 changed files with 229 additions and 16 deletions

View File

@@ -90,7 +90,8 @@ class UserResource extends Resource
'index' => Pages\ListUsers::route('/'),
'create' => Pages\CreateUser::route('/create'),
// 'edit' => Pages\EditUser::route('/{record}/edit'),
'view' => Pages\ViewUser::route('/{record}'),
// 'view' => Pages\ViewUser::route('/{record}'),
'view' => Pages\UserProfile::route('/{record}'),
];
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Filament\Resources\User\UserResource\Pages;
use App\Filament\Resources\User\UserResource;
use Filament\Resources\Pages\Page;
class UserProfile extends Page
{
protected static string $resource = UserResource::class;
protected static string $view = 'filament.resources.user.user-resource.pages.user-profile';
}