Zod
Why is my CSV Importer reading my CSV deformatted?
I am importing a CSV and my CSV importer is reading the headings deformatted. Some headings that I need are: Issuer_nr, Authority_nr and Kaart serie nummer. Those are being read as:
ÿþI�s�s�u�e�r� �N�r�
�A�u�t�h�o�r�i�t�y� �N�r�
�K�a�a�r�t� �s�e�r�i�e� �n�u�m�m�e�r�
When I open the CSV in a code editor it just normally shows the headings as they should be:
Issuer Nr;Authority Nr;Kaart serie nummer;
When I export the CSV to CSV with numbers it does read the headings normally in the importer.
Any ideas?
11 replies
How can I add fields to / extend a resource from a plugin
I want to add a form field to an existing module/plugin we are using. I already tried extending the class and overwriting the form method but thats not working. Any idea how this could be done?
18 replies
How can I make a mailable in a Filament plugin?
I am trying to make a mailable in a new custom Filament plugin but when I use it it gives the following error:
Target class [Spatie\LaravelIgnition\ContextProviders\ComponentRegistry] does not exist.
I am trying to debug and I can dd as far as the attachments function, before the return in the function it works and after the return it gives the error. Also when remove the whole attachments it also gives the error. I have no clue as this debugging is not making sense.
1 replies
Action modal is not showing
I have the following code in my table:
Action::make('review')
->label('Review')
->modalContent(function (Company $company) {
return view(
'filament.resources.company-resource.pages.review-company',
compact('company')
);
})
In the blade I have the following:
<x-filament-panels::page>
<h2 class="text-xl font-bold">Review Company</h2>
<div>
<h3 class="font-bold">Company Information</h3>
<p>Name: {{ $company->name }}</p>
</div>
</x-filament-panels::page>
This will not open the modal, only when I write code that gives an error in the blade, it shows the error in the modal when I click review.
It gives the following error in the console with the code above:
Uncaught (in promise) Snapshot missing on Livewire component with id: XXXXXXXXXXX
2 replies