Arzu
notifications are not added to the notification modal
i found the issue, not sure why it is happening.
to setup the entire notification operation i used the docs of filament.
the issue was in the file "vendor/filament/notifications/src/livewire/databasenotifications.php"
in line 86 we got
return $this->getUser()->notifications()->where('data->format', 'filament');
my problem was the data format, but i dont know how to change the notifications data format to filament or what that means.5 replies
dynamically add fields based on an array
if anyone intrested, i solved it.
basically whenever i want to add fields to the form i can just use the function
$this->form->schema()
.
the issue is that it will overwrite the previous one and only add the latest. so my solution for this was to run a loop of forms, store them in an array and just $this->form->schema($array)
the array contains a normal schema syntax.3 replies
Manipulating CSV inside the form, or function in form
I got lost in my own code, and i dont think the importer function will work for me unless im using it incorrectly.
what i want is this:
i want to select a CSV file with game data and analytics.
i want the system to analyze the CSV file and process it (combining rows if needed, or using it as is)
then it will have a list of games and its data, i want it to create a row in one table with the user choosing the name of the player and such in a table called GameRecord
and the data from the csv, to insert it into a GameRecord_meta table based on key value structure.
i managed to process the csv file, the question is how do i create a section of form for each player
hope my explanation is understandable.
8 replies