abdullafahem
TextareaColumn
Is there any possible to make a textareaColumn because I have a table that is all with TextInputColumn, that users make changes in table but I have notes in the end of the table and I need it to show all the content for example with 4 rows
Is there any solution for this.
9 replies
Filament Export Action
Hi, I have this code for exporting it still work in Laravel 10 and Filament v3.2, but now I tried the same code in Laravel 11 Filament v3.2, it doesn't work. I see the problem doesn't create a filament_exports folder in public/storage.
ExportAction::make()
->label('تصدير')
->color('red')
->icon('heroicon-o-arrow-down-tray')
->exporter(ContactExporter::class)
->formats([
ExportFormat::Xlsx,
])
->fileName(fn (Export $export): string => "تصدير المساهمين-{$export->getKey()}")
->after(function () {
$id = Export::latest()?->first()?->id;
$path = 'filament_exports/' . $id . '/تصدير المساهمين-' . $id . '.xlsx'; // you can change the filename based on the Exporter
if (Storage::disk('public')->exists($path)) {
return response()->stream(
function () use ($path, $id) {
$stream = Storage::disk('public')->readStream($path);
dd($stream);
fpassthru($stream);
fclose($stream);
Storage::disk('public')->deleteDirectory('filament_exports/' . $id);
Export::truncate();
},
200,
[
'Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'Content-Disposition' => 'attachment; filename=' . $id . '.xlsx',
]
);
} else {
abort(404, 'الملف غير موجود.');
}
})
Any solution please?10 replies
Change a date field from a child status field
Hi guys!
I have a Project resource and his Units as a Relation Manager, in the project resource I have a date that should be changed automatically if a unit status changed from available to sold.
Any solution please
4 replies
Same model different Relation Managers
Hi guys!
Is there anyway to filter the same model to different Relation Managers. For example I have Unit the model from this I have 3 Relation Managers 1) Apartments 2) Roofs 3) Villas, but now when I create an Apartment it shows in other Relation Managers.
Please any solution!
5 replies