rajul
rajul
FFilament
Created by dyo on 9/25/2024 in #❓┊help
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
protected function getCampaignInfo(Model $record)
return once(function () use ($record) {
return $record->campaign;
});
}
protected function getCampaignInfo(Model $record)
return once(function () use ($record) {
return $record->campaign;
});
}
10 replies
FFilament
Created by Bruno on 9/26/2024 in #❓┊help
preload com getSearchResults
If you want preload then use options()
3 replies
FFilament
Created by tricia.c on 9/26/2024 in #❓┊help
Logout Middleware
Mark it as done, by More >> App >> Mark Solution
5 replies
FFilament
Created by tricia.c on 9/26/2024 in #❓┊help
Logout Middleware
In your middleware handle function do it something like this
if ( $request->routeIs('filament.admin.auth.logout') )
return $next($request);
}
if ( $request->routeIs('filament.admin.auth.logout') )
return $next($request);
}
just replace the route of your panel, if it not admin panel
5 replies
FFilament
Created by pmeth on 9/7/2024 in #❓┊help
Problem Loading Assets using Herd with Expose
Try ngrok
9 replies
FFilament
Created by matin rajabi on 8/15/2024 in #❓┊help
resource not displaying on sidebar
Do you have multiple panels?
14 replies
FFilament
Created by Farshid Rezaei on 6/25/2024 in #❓┊help
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
FFilament
Created by KingNii on 5/25/2024 in #❓┊help
File Upload
aah, it is about multi file upload in single field.
8 replies
FFilament
Created by KingNii on 5/25/2024 in #❓┊help
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
FFilament
Created by player on 4/27/2024 in #❓┊help
How to search for several attributes in filters with relashionships
It is not clear whether you are trying to create filter or select form field?
9 replies
FFilament
Created by rajul on 4/28/2024 in #❓┊help
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
FFilament
Created by player on 4/27/2024 in #❓┊help
How to search for several attributes in filters with relashionships
can you eloborate your use case?
9 replies
FFilament
Created by toeknee on 11/2/2023 in #❓┊help
Replicate with relational data?
Did you find anything?
7 replies
FFilament
Created by yaroslavpopovic on 2/14/2024 in #❓┊help
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
FFilament
Created by rajul on 8/15/2023 in #❓┊help
Position of element in Dependent Select Field Option
3 replies
FFilament
Created by TiBiBa on 8/3/2023 in #❓┊help
Alternative for emit() in v3?
livewire documentation says "emit() has been renamed to dispatch()"
6 replies
FFilament
Created by rajul on 7/28/2023 in #❓┊help
slow page loading when cache is false
Thanks for info
5 replies
FFilament
Created by Shaung Bhone on 5/26/2023 in #❓┊help
SpatieMediaLibraryFileUploade
You can use collection
5 replies
FFilament
Created by rajul on 5/12/2023 in #❓┊help
how to make filament table row clickable to model view page
Thanks Dan, it works.
4 replies