rajul
Optimize duplicate queries in 2 method at the same TextColumn Class
you could create a function and cache the result of relation in that function and on subsequent call it will return cache result, something like this: https://laravel.com/docs/11.x/helpers#method-once
10 replies
is there any Jalali Date range filter?
may be you could use this column and write you own filter range filter. https://filamentphp.com/plugins/ariaieboy-jalali-datetime
3 replies
File Upload
use section layout and customize it according to your need, may be number of columns be 2. https://filamentphp.com/docs/3.x/forms/layout/section
8 replies
How to dispatch filament form data using blade $dispatch method
I have a custom field where user can select multiple multiple jobs from list of jobs, as list can be long so I am showing that list in a model and when user selects all interested jobs I dispatches all selected jobs back to custom field’s state where I listen for event ‘jobsupdated’ , I want to use browser event $dispatch instead of livewire $dispatch to avoid server roundtrip.
4 replies
Spatie Media Library custom file name
This is how I did it in one of my project. ->getUploadedFileNameForStorageUsing(function (TemporaryUploadedFile $file, Get $get): string {
$rec = $this->getOwnerRecord();
$name = (string) 'image-of-'. $rec->slug . '-' . Str::random(4). '.' . $file->getClientOriginalExtension();
return $name;
})
4 replies
Position of element in Dependent Select Field Option
Video link of issue https://vento.so/view/df8be03c-4571-494b-8beb-eb5941da67a6
3 replies