dipu
how to add pages and live wire in custom plugin
<?php
namespace Chats\Chats;
use Filament\PluginServiceProvider;
use chats\chats\pages\Chats;
use Spatie\LaravelPackageTools\Package;
class chatsServiceProvider extends PluginServiceProvider
{
public static string $name = 'chats';
protected array $resources = [
// CustomResource::class,
];
protected array $pages = [
Chats::class,
];
protected array $widgets = [
// CustomWidget::class,
];
protected array $styles = [
'plugin-chats' => DIR.'/../resources/dist/chats.css',
];
protected array $scripts = [
'plugin-chats' => DIR.'/../resources/dist/chats.js',
];
// protected array $beforeCoreScripts = [
// 'plugin-chats' => DIR . '/../resources/dist/chats.js',
// ];
public function configurePackage(Package $package): void
{
$package->name(static::$name);
}
}
but chat page is not found
4 replies