Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Feb 1, 2024
1 parent 673d308 commit 929dccb
Show file tree
Hide file tree
Showing 41 changed files with 61,206 additions and 261 deletions.
2 changes: 1 addition & 1 deletion app/Filament/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static function getPages(): array
return [
'index' => Pages\ListUsers::route('/'),
'create' => Pages\CreateUser::route('/create'),
//'view' => Pages\ViewUser::route('/{record}'),
'view' => Pages\ViewUser::route('/{record}'),
'edit' => Pages\EditUser::route('/{record}/edit'),
];
}
Expand Down
8 changes: 8 additions & 0 deletions app/Filament/Resources/UserResource/Pages/ViewUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@
namespace App\Filament\Resources\UserResource\Pages;

use App\Filament\Resources\UserResource;
use Filament\Actions\EditAction;
use Filament\Resources\Pages\ViewRecord;

class ViewUser extends ViewRecord
{
protected static string $resource = UserResource::class;

protected function getHeaderActions(): array
{
return [
EditAction::make(),
];
}
}
102 changes: 54 additions & 48 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 929dccb

Please sign in to comment.