GHOST-117
GHOST-117
FFilament
Created by GHOST-117 on 7/10/2024 in #❓┊help
I want to set the time zone of the app according to users timezone
I have think a bit different way in my bootstrap.js firing an event when the app starts

document.addEventListener("DOMContentLoaded", function () {
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
Livewire.dispatch("updateUserTimezone", {timezone,});
});

document.addEventListener("DOMContentLoaded", function () {
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
Livewire.dispatch("updateUserTimezone", {timezone,});
});
and in my dashboard i have

#[On('updateUserTimezone')]
public function updateUserTimezone($timezone)
{
session(['userTimezone' => $timezone]);
}

#[On('updateUserTimezone')]
public function updateUserTimezone($timezone)
{
session(['userTimezone' => $timezone]);
}
a listner for that and iam setting session usertime zone and in my column i have done some thing like
TextColumn::make('created_at')
->timezone(session('userTimezone'))
->date(),
TextColumn::make('created_at')
->timezone(session('userTimezone'))
->date(),
this.....
9 replies
FFilament
Created by GHOST-117 on 7/10/2024 in #❓┊help
I want to set the time zone of the app according to users timezone
I have some user at Fiji Standard Time . At some point they are a day ahead of us what if my user made a payment at his time that is a day ahead of my time zone .... if i open my app at the same time it will show me the future date that is wrong in my opinion .............
9 replies
FFilament
Created by GHOST-117 on 7/8/2024 in #❓┊help
upgrading to laravel 11
It worked 👍🏾
5 replies
FFilament
Created by GHOST-117 on 6/29/2024 in #❓┊help
Serialization of 'Closure' is not allowed
got it
10 replies
FFilament
Created by GHOST-117 on 6/29/2024 in #❓┊help
Serialization of 'Closure' is not allowed
this is my function
public static function ExportJob(): array
{
if (cache('totalRecords-' . auth()->user()->id) < 2000) {
return [ExcelExport::make()->fromTable()->withWriterType(\Maatwebsite\Excel\Excel::CSV)];
}
return [ExcelExport::make()->fromTable()->queue()->withWriterType(\Maatwebsite\Excel\Excel::CSV)];
}
public static function ExportJob(): array
{
if (cache('totalRecords-' . auth()->user()->id) < 2000) {
return [ExcelExport::make()->fromTable()->withWriterType(\Maatwebsite\Excel\Excel::CSV)];
}
return [ExcelExport::make()->fromTable()->queue()->withWriterType(\Maatwebsite\Excel\Excel::CSV)];
}
as per ur saying i should define a column array & pass like this
$columns = [
'column1' => 'Column 1 Title',
'column2' => 'Column 2 Title',

];
return [ExcelExport::make()->withColumns($columns)->queue()->withWriterType(\Maatwebsite\Excel\Excel::CSV)];
$columns = [
'column1' => 'Column 1 Title',
'column2' => 'Column 2 Title',

];
return [ExcelExport::make()->withColumns($columns)->queue()->withWriterType(\Maatwebsite\Excel\Excel::CSV)];
10 replies
FFilament
Created by GHOST-117 on 6/29/2024 in #❓┊help
Serialization of 'Closure' is not allowed
No description
10 replies
FFilament
Created by GHOST-117 on 6/29/2024 in #❓┊help
Serialization of 'Closure' is not allowed
10 replies
FFilament
Created by GHOST-117 on 8/30/2023 in #❓┊help
Button
and remove all tailwind config that u have used & try to reinstall all of that https://filamentphp.com/docs/3.x/notifications/installation#installing-tailwind-css
19 replies
FFilament
Created by GHOST-117 on 8/30/2023 in #❓┊help
Button
check ur Vite.config.js
19 replies
FFilament
Created by GHOST-117 on 5/13/2024 in #❓┊help
How to access files from .env
No description
5 replies
FFilament
Created by GHOST-117 on 5/13/2024 in #❓┊help
How to access files from .env
$ca_cert_path = __DIR__.config('payment.production.MQTT_CA_CERT_PATH');
$ca_cert_path = __DIR__.config('payment.production.MQTT_CA_CERT_PATH');
fixed
5 replies
FFilament
Created by ciorici on 8/25/2023 in #❓┊help
Filters to reload page without Livewire
$this->mount u can remount the page
4 replies
FFilament
Created by WEBMAS on 3/21/2024 in #❓┊help
How to add an avatar as a result of a user search in the topbar?
4 replies
FFilament
Created by WEBMAS on 3/11/2024 in #❓┊help
User account status (enabled/disabled)?
.
13 replies
FFilament
Created by GHOST-117 on 2/16/2024 in #❓┊help
Action inside Another Action
i have chain of modalFooterActions action inside action and forms
13 replies
FFilament
Created by GHOST-117 on 2/16/2024 in #❓┊help
Action inside Another Action
yes iam iam opeaning the modal based on privious action
13 replies
FFilament
Created by GHOST-117 on 2/16/2024 in #❓┊help
Action inside Another Action
Like this
->modalFooterActions([

Action::make('TakePayment')
->extraAttributes(['class' => 'take-payment-btn'])

->submit('TakePayment')
->action(function(){
$this->halt();
})
->modalFooterActions([

Action::make('TakePayment')
->extraAttributes(['class' => 'take-payment-btn'])

->submit('TakePayment')
->action(function(){
$this->halt();
})
13 replies
FFilament
Created by GHOST-117 on 2/16/2024 in #❓┊help
Action inside Another Action
nope EX- i have a modal and have 2 button 1 is for take payment and 2nd one is for Send invoice for them i have separate functionality so skippable will just skip the next step so it wont work and i have tried to implement that ......but not working for my case
13 replies
FFilament
Created by KeyMe on 12/21/2023 in #❓┊help
Prevent action modal from closing automatically
i have multiple action and modal inside a modal https://discord.com/channels/883083792112300104/1207939010089975808 i just want to validate all the steps and when i make ->submit() it validate my form but the modal closes after that
5 replies
FFilament
Created by GHOST-117 on 2/16/2024 in #❓┊help
Action inside Another Action
i a single modal i have take payment and a option to send invoice button in wizard i cant jump steps directly
13 replies