hello_world
How to get State of SelectConstraints
SelectConstraint::make('contactEvents.status')
->options([
'Registered' => 'Registered',
'Checked In' => 'Checked In',
'Buyer' => 'Buyer',
])
->icon('heroicon-m-bookmark')
->label('Contact Event Status'),
and can i override the query of this perticukar constraints
2 replies
when i'm using ->native(false) then disabled is not working
Select::make('Pos_Devices')
->preload()
->options(function (Get $get) {
return PosDevice::availablePosDevices()
->pluck('name', 'pos_devices.id')->toArray();
})
->hidden(function (Get $get) {
return auth()->user()->id != $get('user_id');
})
->native(false)
->disabled(function () {
return $this->assignedDevices ? true : false;
}),
1 replies
Attachments are not uploading when i set File Attachments Visibility as public in Rich Editor
when i set the visibility of Rich editor as Public then the attachments are not uploading but i want it to be public so that it will acessable all the time
this is my code
RichEditor::make('body')
->required()
->fileAttachmentsDisk('public-s3')
->fileAttachmentsDirectory('mail-body-attachments')
->fileAttachmentsVisibility('public'),
4 replies
afterStateUpdated() is not working in Datepicker inside livewire components
this is my code please check
when i use tis DatePicker in Normal Resource or widget the afterStateUpdated() is working but not working if i put the same DatePicker inside a Livewire component Form
12 replies
Getting Error in Sudden Change in Tab
I'm using a Custom table which is changing through a Year filter and I 'm getting Typed property Filament\Widgets\TableWidget::$table must not be accessed before initialization this error when i suddenly change my year filter
9 replies
Getting Error in Query Builder in Table Widget
https://gist.github.com/abhi051002/cdbee5da66029f4ada377f3df40cceaa
when i use a query in table widget it gives me the error " SQLSTATE[42803]: Grouping error: 7 ERROR: column "payments.id" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: ...ONTH FROM transaction_date) order by "month" asc, "payments"... ^" but when i use the same query any where and dd/info the result it works well why it is not working on query builder and give the erro and i know if i add the payments.id then it will work well but i want result without including it.
15 replies