filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
18.07k stars 2.82k forks source link

Class "Filament\Support\Facades\FilamentView" not found #7356

Closed alvleont closed 1 year ago

alvleont commented 1 year ago

Package

filament/filament

Package Version

v3.0.0

Laravel Version

v10.17.0

Livewire Version

No response

PHP Version

PHP 8.2.7

Problem description

Trying to render a hook according to documentation [https://filamentphp.com/docs/3.x/support/render-hooks](for v3), It returns the error Class "Filament\Support\Facades\FilamentView" not found.

(Actually digged it into code and this class is not found into filament/support repo).

Expected behavior

Registering hooks without any error of missing Class.

Steps to reproduce

  1. Open the provider to include
    use Filament\Support\Facades\FilamentView;

    to use:

    FilamentView::registerRenderHook(
    'panels::body.start',
    fn (): string => Blade::render('@livewire(\'theuienhancement\')'),
    );
  2. Just save it.

Reproduction repository

0

Relevant log output

No response

github-actions[bot] commented 1 year ago

Hey @alvleont! We're sorry to hear that you've hit this issue. 💛

However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?

We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.

danharrin commented 1 year ago

Check your Filament version php artisan about

alvleont commented 1 year ago

Yeah, checked that, this is why I didn't reopen the issue.

IDK why it installed v3.?alpha if it was a fresh install.

Alvaro León Torres Químico Farmacéutico - UdeA Telf: +57-305-263-3211 Integrante Grupo de PyP Farmacéutica - Universidad de Antioquia Farmacéutico por pasión Colombia.

El mar, 1 ago 2023 a las 16:33, Dan Harrin @.***>) escribió:

Check your Filament version php artisan about

— Reply to this email directly, view it on GitHub https://github.com/filamentphp/filament/issues/7356#issuecomment-1661130527, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALN3APCFCTTJ44MZG34O3HDXTFY3DANCNFSM6AAAAAA3AABFUE . You are receiving this because you were mentioned.Message ID: @.***>

danharrin commented 1 year ago
composer require filament/filament:"^3.0-stable" -W