Sydd
Filter form loading time
Dear all, in resource table i have filter as a custom form, when opening form filter it's have a few seconds to load options, when using standard Select filter the response to load options is minimal ..., anybody know woh to fix or increase performance of form filter ? (I need to use form filter with reason of dependacy injection of next filter form fields) See code bellow:
2 replies
browsershot / laravel-pdf on Win 11
I know that this is not filament content, but i will try power of this comunity. Anybody have instaled browsershot / spatie laravel-pdf on Win 11 ??? .... I'm trying a lot of ways.... but without success ....
2 replies
Requiredif multi select is empty
Dear all, if somebody know how to validate field with required if another multiple select is empty. I'm try few ways but nothnig works..
->requiredIf('job_factors', [], true)
->requiredIf('job_factors', '[]', true)
->requiredIf('job_factors', null, true)
5 replies
fileUpload download file directly to download folder
Pleas, probably i'm doing something wrong, i use file upload component with s3, everything works fine, but when trigger downloadable button the file is opened in new tab in the browser. Is any possibility to set downloads directly ? or as i think create maybe hint action, with custom method...
2 replies
saade autograph load signature
Dear all, I would ask if someone used plugin Saade autograph ... i try to load user signature from user model ? In DB is stored as base64 format. I'm trying do it from hint action but without succes result, any ideas to solve code below ? Probably some advice from more experienaced permanentne with $set ... I new with this.
4 replies
getRecordTitleAttribute from related model
Dear all, last time I have a lot of question. Please how can I create record title attibute from realated mode? for getGloballySearchableAttributes it works fine, but for getRecordTitleAttribute; in the Filament docs I read that it's must be a column / attributefrom model ... but is possible to get from related model ?
19 replies
filter record in relations model
Hello everyone, I want some advice, direction... I have a Truck Driver model that is related to the db table drives... on the index page where all the truck drivers are, I show the number of kilometers per year, month, etc. how to correctly set such a filter ... so that I only have distinct values from the db tables drives ... and then the query is also correctly adjusted in the driver according to the selected year. As stated below ... the filter returns the $id of records in drives with years, so I have 256x 2023 ... etc. If someone would direct me in which direction to go for the solution. Well thank you.
Seems to ->options dont aply to filer ....
6 replies
Select mofiyQueryUsing return only Id on relationship
Dear all, according code under, is modified query but returned to options ID, not name ..., and is possible to show searchable only if option is more than 6 ?
Select::make('safirsBranch_id')
->label(('app.safirs.safirsBranch'))
->relationship('safirsBranch', 'safirsBranchName',
fn (Builder $query) => $query->where('id', auth()->user()->safirsBranches->pluck('id')->toArray()))
->required()
->native(false)
//->searchable() if count of options is more than 6
->searchable()
->preload()
->placeholder(('app.safirs.safirsBranch')),
4 replies
TextEntry roles badge translations
Dear all, please advice me, how to translate roles in TextEntry badges ..., I'm try but, it's dont work, returned values as stored in DB. TextEntry::make(('app.role.roles'))
->label(('app.role.roles'))
->badge()
->color('primary')
->separator(','),
5 replies
table column dont display value from resource
Dear all, why column with values from table dont show in the column ? 2 hours its works, but something going wrong and i dont know what ... resurce is from user model,
name is displayed, but fullName, email etc. not.
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('name'),
TextColumn::make('fullName'),
TextColumn::make('email'),
11 replies