Firebat
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
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
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
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
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