idkwhoami
idkwhoami
FFilament
Created by idkwhoami on 5/16/2024 in #❓┊help
Filament Plugin Page Form Issue
Hey there im running into a small issue with panel pages and livewire components using filament forms. I have the following setup: I have an Admin panel which is registered via a filament plugin. That panel has tenancy so i want to ship the plugin with a premade tenant profile page. I created the profile page it's class looks like this:
class TenantProfile extends EditTenantProfile
{
protected static ?string $navigationIcon = 'heroicon-s-adjustments-horizontal';

protected static string $view = 'package::pages.tenant-profile';

public static function getLabel(): string
{
return 'Profile';
}
}
class TenantProfile extends EditTenantProfile
{
protected static ?string $navigationIcon = 'heroicon-s-adjustments-horizontal';

protected static string $view = 'package::pages.tenant-profile';

public static function getLabel(): string
{
return 'Profile';
}
}
And here the view:
<x-filament-panels::page>

<x-filament::section>
<x-slot:heading>Customization</x-slot:heading>
<x-slot:description>
Make the platform feel right at home. Upload a logo pick your brand colors and more...
</x-slot:description>

<x-package::tenant-customization wire:key="tenant-customization" />

</x-filament::section>

<x-filament-actions::modals />
</x-filament-panels::page>
<x-filament-panels::page>

<x-filament::section>
<x-slot:heading>Customization</x-slot:heading>
<x-slot:description>
Make the platform feel right at home. Upload a logo pick your brand colors and more...
</x-slot:description>

<x-package::tenant-customization wire:key="tenant-customization" />

</x-filament::section>

<x-filament-actions::modals />
</x-filament-panels::page>
As you can see i created a component called tenant-customization to hold the a filament form. Here i followed the instructions in the Filament docs here: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component So my component is basically a copy & paste of the docs code at the moment. But whenever i actually view the page the form doesn't render at all also when clicking "Submit" an error occurs which is a bit confusing:
Unable to find component: [dev-idkwhoami.package.pages.tenant-profile]
Unable to find component: [dev-idkwhoami.package.pages.tenant-profile]
Why is it trying to refresh the page view instead of re-rendering the component view ? Am i missing something ? I appreciate any ideas ^^
3 replies
FFilament
Created by idkwhoami on 3/14/2024 in #❓┊help
Laravel 11 & Filament - Plugin Installation Fails
Problem 1
- Root composer.json requires parallax/filament-comments * -> satisfiable by parallax/filament-comments[1.0.0, ..., 1.1.0].
- parallax/filament-comments[1.0.0, ..., 1.1.0] require illuminate/contracts ^10.0 -> found illuminate/contracts[v10.0.0, ..., v10.48.2] but these were not loaded, likely because it conflicts with another require.

You can also try re-running composer require with an explicit version constraint, e.g. "composer require parallax/filament-comments:*" to figure out if any version is installable, or "composer require parallax/filament-comments:^2.1" if you know which you need.
Problem 1
- Root composer.json requires parallax/filament-comments * -> satisfiable by parallax/filament-comments[1.0.0, ..., 1.1.0].
- parallax/filament-comments[1.0.0, ..., 1.1.0] require illuminate/contracts ^10.0 -> found illuminate/contracts[v10.0.0, ..., v10.48.2] but these were not loaded, likely because it conflicts with another require.

You can also try re-running composer require with an explicit version constraint, e.g. "composer require parallax/filament-comments:*" to figure out if any version is installable, or "composer require parallax/filament-comments:^2.1" if you know which you need.
Completely clean Laravel installation (11.0) then installed filament (3.2.48) then when i try to install basically ANY plugin it fails with the above error Anybody else having this problem ? Any idea why this is happening ?
5 replies