kenepa / banner

Filament banner allows you to easily create, manage, and display banners in your application.
MIT License
61 stars 7 forks source link

Title: Class "Filament\View\PanelsRenderHook" not found error when using BannerPlugin #12

Closed afiktahirov closed 2 months ago

afiktahirov commented 2 months ago

What happened?

I am encountering an error when trying to use the kenepa/banner plugin with my Filament-based application. After following the installation steps, I receive the following error when I attempt to run my application:

Class "Filament\View\PanelsRenderHook" not found

`use Kenepa\Banner\BannerPlugin; use Filament\Panel;

public function panel(Panel $panel): Panel { return $panel ->plugins([ BannerPlugin::make() ->persistsBannersInDatabase() ]); } content: [ './vendor/kenepa/banner/resources/*/.php', ] @import '../../../../vendor/kenepa/banner/resources/css/index.css'; php artisan vendor:publish --tag="banner-migrations" php artisan migrate `

PHP version: 8.2.12 Laravel version: 10.48.15 Filament version: v3.2.0 kenepa/banner version: 0.0.5^

How to reproduce the bug

Package Version

0.0.5

PHP Version

8.2.12

Laravel Version

10.48.15

Which operating systems does with happen with?

No response

Notes

No response

Jehizkia commented 2 months ago

Thank you for reaching out. I see that you are using filament 3.2.0. Try 3.2.23 and above, but preferably the latest version.

afiktahirov commented 2 months ago

Thank you for reaching out. I see that you are using filament 3.2.0. Try 3.2.23 and above, but preferably the latest version.

Thank you! Now it's working fine