Personal Plugin v3 Upgrade not showing up
I have a personal blog plugin for filament, here is my service provider. From the documentation it looks like we can still use spatie package tools here is my service provider
From what I can see its not registering the routes so may not be running the service provider ?
<?php
namespace Illusive\Blog;
//use Filament\PluginServiceProvider;
use Illusive\Blog\Commands\CreatePostLowestCategoryCommand;
use Illusive\Blog\Commands\InstallCommand;
use Illusive\Blog\Middleware\IncrementPostViewsMiddleware;
use Illusive\Blog\Resources\AuthorResource;
use Illusive\Blog\Resources\CategoryResource;
use Illusive\Blog\Resources\PostResource;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
class BlogServiceProvider extends PackageServiceProvider
{
protected array $resources = [
AuthorResource::class,
CategoryResource::class,
PostResource::class,
];
public function configurePackage(Package $package): void
{
$package
->name('filament-blog')
->hasConfigFile()
->hasTranslations()
->hasCommand(InstallCommand::class)
->hasCommand(CreatePostLowestCategoryCommand::class)
->hasRoute('web')
->hasMigration('create_filament_blog_tables')
->hasMigration('update_blog_tables_2023-08-2');
$this->publishes([__DIR__.'/../resources/js/Pages' => resource_path('js/Pages')], 'vue-blog-pages');
$this->publishes([__DIR__.'/../resources/js/BlogPagination.vue' => resource_path('js/Components/BlogPagination.vue')], 'vue-blog-pages');
$this->publishes([__DIR__.'/../resources/js/BlogContentContainer.vue' => resource_path('js/Components/BlogContentContainer.vue')], 'vue-blog-pages');
$this->app['router']->aliasMiddleware('increment.views', IncrementPostViewsMiddleware::class);
}
}<?php
namespace Illusive\Blog;
//use Filament\PluginServiceProvider;
use Illusive\Blog\Commands\CreatePostLowestCategoryCommand;
use Illusive\Blog\Commands\InstallCommand;
use Illusive\Blog\Middleware\IncrementPostViewsMiddleware;
use Illusive\Blog\Resources\AuthorResource;
use Illusive\Blog\Resources\CategoryResource;
use Illusive\Blog\Resources\PostResource;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
class BlogServiceProvider extends PackageServiceProvider
{
protected array $resources = [
AuthorResource::class,
CategoryResource::class,
PostResource::class,
];
public function configurePackage(Package $package): void
{
$package
->name('filament-blog')
->hasConfigFile()
->hasTranslations()
->hasCommand(InstallCommand::class)
->hasCommand(CreatePostLowestCategoryCommand::class)
->hasRoute('web')
->hasMigration('create_filament_blog_tables')
->hasMigration('update_blog_tables_2023-08-2');
$this->publishes([__DIR__.'/../resources/js/Pages' => resource_path('js/Pages')], 'vue-blog-pages');
$this->publishes([__DIR__.'/../resources/js/BlogPagination.vue' => resource_path('js/Components/BlogPagination.vue')], 'vue-blog-pages');
$this->publishes([__DIR__.'/../resources/js/BlogContentContainer.vue' => resource_path('js/Components/BlogContentContainer.vue')], 'vue-blog-pages');
$this->app['router']->aliasMiddleware('increment.views', IncrementPostViewsMiddleware::class);
}
}From what I can see its not registering the routes so may not be running the service provider ?