mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
- Created UserResource for managing users with form and table configurations. - Implemented pages for creating, editing, listing users, and viewing user activities. - Added UserPlugin for resource registration in Filament admin panel. - Introduced CSS styles for panel quick creation and listing filters. - Developed JavaScript modules for handling listing filters and home slider functionality.
35 lines
796 B
PHP
35 lines
796 B
PHP
<?php
|
|
|
|
namespace Modules\Listing;
|
|
|
|
use Filament\Contracts\Plugin;
|
|
use Filament\Panel;
|
|
|
|
final class ListingPlugin implements Plugin
|
|
{
|
|
public function getId(): string
|
|
{
|
|
return 'listing';
|
|
}
|
|
|
|
public static function make(): static
|
|
{
|
|
return app(static::class);
|
|
}
|
|
|
|
public function register(Panel $panel): void
|
|
{
|
|
$panel
|
|
->discoverResources(
|
|
in: module_path('Listing', 'Filament/Admin/Resources'),
|
|
for: 'Modules\\Listing\\Filament\\Admin\\Resources',
|
|
)
|
|
->discoverWidgets(
|
|
in: module_path('Listing', 'Filament/Admin/Widgets'),
|
|
for: 'Modules\\Listing\\Filament\\Admin\\Widgets',
|
|
);
|
|
}
|
|
|
|
public function boot(Panel $panel): void {}
|
|
}
|