Desmond Njuguna
Desmond Njuguna
FFilament
Created by Kymset on 5/20/2024 in #❓┊help
Dynamic Customise Columns for Table
So the final snippet will be Tables\Columns\TextColumn::make('phone') ->searchable() ->toggleable(isToggledHiddenByDefault: true),
5 replies
FFilament
Created by Kymset on 5/20/2024 in #❓┊help
Dynamic Customise Columns for Table
Sure, chain this method to the table field ->toggleable(isToggledHiddenByDefault: true)
5 replies
FFilament
Created by code jam on 5/20/2024 in #❓┊help
multiple panels on single dashboard as tabs?
Here is a demo for the same, I have restricted to only admins to switch panels
9 replies
FFilament
Created by code jam on 5/20/2024 in #❓┊help
multiple panels on single dashboard as tabs?
Anytime sensei
9 replies
FFilament
Created by code jam on 5/20/2024 in #❓┊help
multiple panels on single dashboard as tabs?
Hi Povilas, Panel switching is actually possible. There's a plugin for that, https://filamentphp.com/plugins/bezhansalleh-panel-switch, and you can also restrict who can and cannot use the panel swith, aither with roles or permissions
9 replies
FFilament
Created by Alnuaimi on 5/20/2024 in #❓┊help
My Resorce has Form I want to call it or inheritance this form in another palce
you can define a getForm static method in the corresponding model then call the form in any resource you want Eg if you have a tag model and the resources, in the Tag model define a new methid like so public static function getForm(): array { return [ TextInput::make('name') ->required() ->maxLength(255), ColorPicker::make('color') ->required(), ]; } Then in the tagresource form method do this public static function form(Form $form): Form { return $form ->schema(Task::getForm()); } I suppose you have a userresource and you might want to create a new tag without necessarily goung back to the tag resource, so in the tag form component of the userresource form method you can chain the method createOptionForm(App\Models\Tag::getForm()) and have it complete as so Select::make('tags') ->relationship('tags', 'name',) ->multiple() ->searchable() ->preload() ->createOptionForm(Tag::getForm()) Hope this is what youre looking for
7 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Which starter kit are you using? Jetstream or Breeze?
22 replies
FFilament
Created by Desmond Njuguna on 4/21/2024 in #❓┊help
Blade Components
Got it working, used a custom layout instead of using <x-filament-panels::page>
17 replies
FFilament
Created by Desmond Njuguna on 4/21/2024 in #❓┊help
Blade Components
No description
17 replies
FFilament
Created by Desmond Njuguna on 4/21/2024 in #❓┊help
Blade Components
Let me do that
17 replies
FFilament
Created by Desmond Njuguna on 4/21/2024 in #❓┊help
Blade Components
Sorry, the flex direction should be row but the sections are still as shown in the screenshot
17 replies
FFilament
Created by Desmond Njuguna on 4/21/2024 in #❓┊help
Blade Components
No description
17 replies
FFilament
Created by Desmond Njuguna on 4/21/2024 in #❓┊help
Blade Components
Yes i have
17 replies
FFilament
Created by Desmond Njuguna on 4/21/2024 in #❓┊help
Blade Components
I am already using a custom theme $panel->viteTheme('resources/css/filament/admin/theme.css');
17 replies