flex
flex
FFilament
Created by Jacob on 1/3/2025 in #❓┊help
Register plugin from service provider
13 replies
FFilament
Created by flex on 3/1/2025 in #❓┊help
Get Schema from Form for createOptionForm()I
Sounds good. Will try this later this day.
13 replies
FFilament
Created by flex on 3/1/2025 in #❓┊help
Get Schema from Form for createOptionForm()I
Of course I can adjust all the resources I have but doesn't feel as a great approach. It's more a workaround.
13 replies
FFilament
Created by flex on 3/2/2025 in #❓┊help
Pivot-Table with Morph-Relation?
May, there is anyway, to pass to the Select::relationship() function not only the name of the relation, but also the information, that I want to address this relation on the pivot table and not on one of the n:m tables.
2 replies
FFilament
Created by flex on 3/1/2025 in #❓┊help
Get Schema from Form for createOptionForm()I
Unfortunately no.. The error comes a bit later. I can now see and click the plus, but immediately get this one now.. Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, Filament\Forms\Form given
13 replies
FFilament
Created by flex on 3/1/2025 in #❓┊help
Get Schema from Form for createOptionForm()I
@toeknee Yes, that would be a wordaround, but would always need to manipulate the origin resource.
13 replies
FFilament
Created by flex on 3/1/2025 in #❓┊help
Get Schema from Form for createOptionForm()I
No description
13 replies
FFilament
Created by flex on 3/1/2025 in #❓┊help
Get Schema from Form for createOptionForm()I
That's what I am doing for relation managers but for createOptionForm it doesn't work for me: Filament\Forms\Components\Select::createOptionForm(): Argument #1 ($schema) must be of type Closure|array|null, Filament\Forms\Form given
13 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
The afterResolving() is required as otherwise the FilamentPluginRegistry may is not declaed as singleton from the AppServiceProvider, when the blog's provider's register() got triggered.
16 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
Using this, in the blog's serviceprovider's register(): $this->app->afterResolving(FilamentPluginRegistry::class, function ($service) { $service->register('blog', BlogPlugin::class); }); and in FilamentServiceProvider's panel(): ->plugins( array_map( fn ($plugin) => $plugin::make(), app(FilamentPluginRegistry::class)->all() ) ); (Of course, FilamentPluginRegistry need to be a singleton.
16 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
solution*
16 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
But I found a soltuion
16 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
Manual registration is not an option for me.
16 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
No description
16 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
Currently in boot()
16 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
With if ($currentPanel = filament()->getPanel('xxx')) { $currentPanel->plugins([ BlogPlugin::make(), ]); } I am quite near I think. But, it results into: Route [filament.xxx.resources.posts.index] not defined. When opening the admin. So, the plugin got registered somehow. But not completely...
16 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
CMS can exist without it. Blog ist just an "addon". I want to avoid manual registration. I just want to composer install blog and it should be ready to go like with most of other Laravel packages.
16 replies
FFilament
Created by Jacob on 1/3/2025 in #❓┊help
Register plugin from service provider
@Jacob Did you find a way to "self-register" the plugins from the service providers? Trying this too but failing with: Route [filament.xxx.resources.posts.index] not defined.
13 replies
FFilament
Created by flex on 2/27/2025 in #❓┊help
Self-Registering Filament Plugins
By using $panel = filament()->getPanel('<id>') I can actually get the Panel object – But is there a way to register a plugin after the creation of the panel?
16 replies
FFilament
Created by flex on 10/26/2024 in #❓┊help
School-Class-Manager Usability-Problem
That are awesome hints. I will play around with it a bit. Thank you very much
7 replies