feat: add UserResource with is_admin toggle and delete
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled

User management resource with editable is_admin field, postcode support,
admin filter, and inline delete action. Includes list and edit pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ovidiu U
2026-04-04 18:31:55 +01:00
parent fb4c413926
commit c2c16c928b
10 changed files with 2172 additions and 41 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Filament;
use BackedEnum;
use Filament\Support\Contracts\HasIcon;
use Filament\Support\Contracts\HasLabel;
use Illuminate\Contracts\Support\Htmlable;
enum NavigationGroup implements HasIcon, HasLabel
{
case Users;
case Data;
case System;
public function getLabel(): string
{
return match ($this) {
self::Users => 'Users',
self::Data => 'Data',
self::System => 'System',
};
}
public function getIcon(): string|BackedEnum|Htmlable|null
{
return match ($this) {
self::Users => 'heroicon-o-users',
self::Data => 'heroicon-o-circle-stack',
self::System => 'heroicon-o-cog-6-tooth',
};
}
}