Thank you for the video it's been very helpful. But got a question : how to deal with temporary files. my app users deals with importing a lot, so I figure out why not using a temp folder, and actually livewire and Laravel has one implemented with filament 3 ->storeFiles(false) makes the file in a temp-livewire folder inside the storage folder, but when dd the $file it doesn't show the file path, instead it's showing the temp object instead and casting this error : "C:\xampp\htdocs\Project-test\public\storage/C:\Users\mounir\AppData\Local\Temp\phpDD52.tmp" // app\Filament\Resources\OperationResource.php:490
I haven't worked with tenancy in Filament, I think it'll be similar to what we did here, there's probably some way to access the current tenant, and you can query the data accordingly for that tenant
You can include a sample csv file, which the users can download, and they will fill that csv as per the format and then, they can import it accordingly On the custom action, you can add a button, which when clicked, will download that csv file.
I followed your instruction sir. But im getting this error all the time SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value. Both my equipment table and excel doesnt have a name column it may be because im trying to find the id of the FK using it's name on same query as what u did sir. can you help me
Hi bro, what extension that you install for that glowing cursor effect?
Thank you for the video it's been very helpful.
But got a question : how to deal with temporary files.
my app users deals with importing a lot, so I figure out why not using a temp folder, and actually livewire and Laravel has one implemented with filament 3
->storeFiles(false) makes the file in a temp-livewire folder inside the storage folder, but when dd the $file it doesn't show the file path, instead it's showing the temp object instead and casting this error :
"C:\xampp\htdocs\Project-test\public\storage/C:\Users\mounir\AppData\Local\Temp\phpDD52.tmp" // app\Filament\Resources\OperationResource.php:490
That's very fantastic
But how we can show the students records in the navigation bage that is under the current tenant
I haven't worked with tenancy in Filament, I think it'll be similar to what we did here, there's probably some way to access the current tenant, and you can query the data accordingly for that tenant
Is there any way to add a sample csv file which can be downloaded, filled and then used to import data?
You can include a sample csv file, which the users can download, and they will fill that csv as per the format and then, they can import it accordingly
On the custom action, you can add a button, which when clicked, will download that csv file.
@@TapanSharma. Thanks
thank you
the temporary file is it automaticaly deleted or we must delete it manually and how to delete it if manually?
You can delete those files using a scheduler, in case they don't get deleted automatically
I followed your instruction sir. But im getting this error all the time SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value. Both my equipment table and excel doesnt have a name column it may be because im trying to find the id of the FK using it's name on same query as what u did sir. can you help me
need cs code theme name and this tying neon