mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-07 05:58:51 +08:00
wip 3.x updates
This commit is contained in:
36
src/SkeletonPlugin.php
Normal file
36
src/SkeletonPlugin.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace VendorName\Skeleton;
|
||||
|
||||
use Filament\Contracts\Plugin;
|
||||
use Filament\Panel;
|
||||
|
||||
class SkeletonPlugin implements Plugin
|
||||
{
|
||||
protected static string $name = 'skeleton-plugin';
|
||||
|
||||
public function getId(): string
|
||||
{
|
||||
return static::$name;
|
||||
}
|
||||
|
||||
public function register(Panel $panel): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function boot(Panel $panel): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public static function make(): static
|
||||
{
|
||||
return app(static::class);
|
||||
}
|
||||
|
||||
public static function get(): static
|
||||
{
|
||||
return filament(app(static::class)->getId());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user