Firebat
Firebat
FFilament
Created by Firebat on 11/5/2024 in #❓┊help
Select with multiple doesn't show previously selected record because they are softdeleted
I know it is because of Laravel eloquent and i could change the query to withTrashed but the hard part is that the options should not list softdeleted, because in the app they are "archived", but the previously selected options should. I can make the "same" option work in relations that store a id on the table using getOptionLabelUsing, i tried using getOptionLabelsUsing on the multiple form Select but to no affect, any on how to make it work?
9 replies
FFilament
Created by Firebat on 10/17/2024 in #❓┊help
Change action priority in clickable rows
Due to Model policies i have View actions and Edit actions, but when i have View action it changes the priority from edit to view, is there any way of changing that behaviour?
12 replies
FFilament
Created by Firebat on 10/7/2024 in #❓┊help
Unable to create notifications
Trying to create notifications in the database, i followed the docs but when i use any of the recommended methods it doesn't throw a error nor does it create a notification, any idea why? Methods that i tried: $recipient = auth()->user(); Notification::make() ->title('Saved successfully') ->sendToDatabase($recipient); $recipient = auth()->user(); $recipient->notify( Notification::make() ->title('Saved successfully') ->toDatabase(), ); Currently using laravel 11 and the latest version of filament "filament/filament": "^3.2.115"
5 replies
FFilament
Created by Firebat on 9/30/2024 in #❓┊help
Table Tabs in RelationManager
How can i achieve the same result as the GetTabs from a resource ListPage in a relation manager? im referring to https://filamentphp.com/docs/3.x/panels/resources/listing-records#using-tabs-to-filter-the-records
5 replies
FFilament
Created by Firebat on 9/16/2024 in #❓┊help
Passing JSON key to $wire.updateTableColumnState, in a custom column
No description
4 replies
FFilament
Created by Firebat on 9/12/2024 in #❓┊help
Anyway of accessing $record inside of View::make()->components() ?
following code is trying to iterate thru a json, so that the toggle works View::make('view')->view('tables.columns.delivery') ->components( function($record) { $components = []; foreach($record->itens as $key => $item) { $components[] = ToggleColumn::make('itens.'.$key.'.Entregue') ->label($item['Nome']); } return $components; } ) before i was doing: ToggleColumn::make('itens.1.Entregue') ->label('Algo') It was working, but i need to iterate thru the json, but i cant access $record, something im doing wrong?
2 replies
FFilament
Created by Firebat on 9/12/2024 in #❓┊help
Undefined constant "heroicon" on x-filament::icon
As my last post, im trying to cannibalize the toggle button to a normal livewire component, but i hit a problem, while using x-filament::icon and passing the icon without the $getOffIcon() i get the error Undefined constant "heroicon", so im trying to debug it but i cant find the source code on the vendor, any hint?
5 replies
FFilament
Created by Firebat on 9/11/2024 in #❓┊help
Does a Toggle blade component exist?
I want to use it in my View::make but i didn't found on the documentation of Core Concepts -> Blade Components, if not possible where can i get the styling and js so i can cannibalize it?
5 replies
FFilament
Created by Firebat on 9/11/2024 in #❓┊help
Change side collapsible() appears in table builder
by following the example in https://filamentphp.com/docs/3.x/tables/layout#custom-html, i just want to know if there is a way to put it on the left of the row
2 replies