danzzz
danzzz
FFilament
Created by danzzz on 5/29/2024 in #❓┊help
Validate multiple dynamic fields
hey Tally, this is a really great and easy solution 🙂 thank you!
7 replies
FFilament
Created by Amitoj on 4/10/2024 in #❓┊help
Distorted Menu Button & Modals
try to rebuild the assets (npm)
26 replies
FFilament
Created by danzzz on 2/8/2024 in #❓┊help
Use Spatie Translate language in Tables / Forms
In case some needs it, solved it with this code: Tables\Columns\TextColumn::make('parent.name') ->state(function($livewire, QuestionCategory $questionCategory) { if(isset($questionCategory->parent->name)) return $questionCategory->parent->getTranslation('name',$livewire->activeLocale); return ''; }) ->label('Kategorie') ->searchable(),
4 replies
FFilament
Created by 2l30926048 on 12/26/2023 in #❓┊help
Json column casted as array searchable in filament admin panel
have the same question 😄
3 replies
FFilament
Created by danzzz on 1/18/2024 in #❓┊help
Reload InfoList after Update in RelationManger
solution: ->after(fn(Component $livewire) => $livewire->dispatch('updateViewUser')), where Component = Livewire\Component
6 replies
FFilament
Created by danzzz on 1/18/2024 in #❓┊help
Reload InfoList after Update in RelationManger
how one can dispatch an event in the ->after() callback? this->dispatch dont work
6 replies
FFilament
Created by danzzz on 1/18/2024 in #❓┊help
Reload InfoList after Update in RelationManger
I solved it using a listener and the "updated" hook from livewire + dispatching an event. but I cant listen for deletes.
6 replies
FFilament
Created by danzzz on 12/20/2023 in #❓┊help
renderHook scope dont work
solution: ->renderHook( 'tables::toolbar.search.before', fn (): View => view('filament.test-view'), scopes: \App\Filament\Resources\TransactionResource\Pages\ManageTransactions::class, )
5 replies
FFilament
Created by shad on 12/17/2023 in #❓┊help
Adding an action button to the panel
may you can solve it with render hooks: https://filamentphp.com/docs/3.x/support/render-hooks It allows you to render Blade content at various points in the frameworks views.
4 replies
FFilament
Created by danzzz on 12/16/2023 in #❓┊help
Display an image (ImageColumn) from local storage (not public accessible)
I ended up with this solution: Forms\Components\ViewField::make('image') ->view('filament.tables.columns.custom-upload-preview'), @php use Intervention\Image\ImageManager; use Intervention\Image\Drivers\Gd\Driver; $manager = new ImageManager(new Driver()); $image = $manager->read(storage_path('app/').$getRecord()->file_name); // app/uploads/some.png $image->scaleDown(200); $base64 = base64_encode($image->encode()); @endphp <img class="rounded-xl" src="{{ 'data:image/jpeg;base64,' . $base64 }}" alt="{{ $getRecord()->title }}">
3 replies
FFilament
Created by danzzz on 12/14/2023 in #❓┊help
Pseude Toggle for activating an other field
Forms\Components\Toggle::make('with_uploads') ->live() ->afterStateHydrated(function (Announcement $announcement, Forms\Components\Toggle $component) { if($announcement->uploads()->count()) { $component->state(true); } else { $component->state(false); } }), This works for me now. Thx.
3 replies
FFilament
Created by danzzz on 12/8/2023 in #❓┊help
Show/Hide Table Columns based on getTabs()
thx all, it's working with injecting $livewire
6 replies
FFilament
Created by danzzz on 12/7/2023 in #❓┊help
Search also in hidden or not used columns
oh yes, thx. but the "applySearchToTableQuery" solution fits nicely, thx
7 replies
FFilament
Created by danzzz on 12/7/2023 in #❓┊help
Search also in hidden or not used columns
do you meand ->visible() or isVisible() methods ?
7 replies
FFilament
Created by danzzz on 11/25/2023 in #❓┊help
Disable Resource Title
but it removes also the breadcrumbs 😄
7 replies
FFilament
Created by danzzz on 11/25/2023 in #❓┊help
Disable Resource Title
public function getTitle() : string { return ''; } this works now, thx
7 replies
FFilament
Created by danzzz on 11/25/2023 in #❓┊help
Disable Resource Title
thx for your answer. but this also dont work.
7 replies
FFilament
Created by danzzz on 11/8/2023 in #❓┊help
How to conditionaly use headerActions for tables?
3 replies