mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-06 13:38:53 +08:00
41 lines
918 B
PHP
41 lines
918 B
PHP
<?php
|
|
|
|
namespace VendorName\Skeleton;
|
|
|
|
use Filament\PluginServiceProvider;
|
|
use Spatie\LaravelPackageTools\Package;
|
|
|
|
class SkeletonServiceProvider extends PluginServiceProvider
|
|
{
|
|
public static string $name = 'skeleton';
|
|
|
|
protected array $resources = [
|
|
// CustomResource::class,
|
|
];
|
|
|
|
protected array $pages = [
|
|
// CustomPage::class,
|
|
];
|
|
|
|
protected array $widgets = [
|
|
// CustomWidget::class,
|
|
];
|
|
|
|
protected array $styles = [
|
|
'plugin-skeleton' => __DIR__ . '/../resources/dist/skeleton.css',
|
|
];
|
|
|
|
protected array $scripts = [
|
|
'plugin-skeleton' => __DIR__ . '/../resources/dist/skeleton.js',
|
|
];
|
|
|
|
// protected array $beforeCoreScripts = [
|
|
// 'plugin-skeleton' => __DIR__ . '/../resources/dist/skeleton.js',
|
|
// ];
|
|
|
|
public function configurePackage(Package $package): void
|
|
{
|
|
$package->name(static::$name);
|
|
}
|
|
}
|