Wiebe
Wiebe
FFilament
Created by Wiebe on 5/27/2024 in #❓┊help
money format wrong on prod server
I'm showing a price this way:
TextEntry::make('price')->label('Kosten')->money('EUR', locale: 'nl'),
TextEntry::make('price')->label('Kosten')->money('EUR', locale: 'nl'),
locally it returns € 10,95 but on production €10.95 How can i fix this?
5 replies
FFilament
Created by Wiebe on 3/25/2024 in #❓┊help
Stats widget columns
I want to have a columnspan of 2 on mobile and 3 on desktop. But I cant get it working. Already tried this:
public function getColumnSpan(): int|string|array {
return [
'default' => 2,
'md' => 3,
];
}

public function getColumnStart(): int|string|array {
return [
'default' => 2,
'md' => 3,
];
}
public function getColumnSpan(): int|string|array {
return [
'default' => 2,
'md' => 3,
];
}

public function getColumnStart(): int|string|array {
return [
'default' => 2,
'md' => 3,
];
}
2 replies
FFilament
Created by Wiebe on 2/20/2024 in #❓┊help
Use table with non-eloquent model
I'm using this package https://github.com/baopham/laravel-dynamodb Is there a way to use these models in a table?
2 replies
FFilament
Created by Wiebe on 2/15/2024 in #❓┊help
Bug in widget chart?
First of all its very hard to find the point to hover on, but it also looks like the values are wrong?
4 replies
FFilament
Created by Wiebe on 11/28/2023 in #❓┊help
S3 cors errors (sometimes)
I'm using S3 for file uploads, but sometimes (not always) i still get CORS errors, i've set the following configuration:
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": []
}
]
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": []
}
]
7 replies
FFilament
Created by Wiebe on 11/24/2023 in #❓┊help
Filter on widget
Is it possible to add the filter to a widget? The same way the table uses it.
4 replies
FFilament
Created by Wiebe on 11/21/2023 in #❓┊help
Actions still visible when setting ->hidden()
I'm using actions in custom livewire components, but when setting ->hidden() the action is still visible and only disabled. How can i hide them when hidden?
7 replies
FFilament
Created by Wiebe on 11/15/2023 in #❓┊help
use ID instead of email for logging in and resetting password
How can I use the ID for this instead of the email?
3 replies
FFilament
Created by Wiebe on 10/30/2023 in #❓┊help
No data from disabled inputs
Is this normal or a bug? when i've got this:
TextInput::make('name')->required()->disabled();
TextInput::make('name')->required()->disabled();
The name is not there in
$data = $this->form->getState();
$data = $this->form->getState();
9 replies
FFilament
Created by Wiebe on 10/17/2023 in #❓┊help
Select not filled after createOptionUsing
In V2 it worked fine but in V3 it doesnt. After submitting the form in the select, the option is visible in the select dropdown but the select goes to "select an option".
Select::make('location_id')
->label(__('manage.location'))
->options(fn() => $this->organisation->locations->pluck('label', 'id'))
->createOptionForm([
SingleLayout::make()->schema([
TextInput::make('name')->label(__('manage.name_location'))->required(),
TextInput::make('address')->label(__('manage.address')),
TextInput::make('zipcode')->label(__('manage.zipcode')),
TextInput::make('city')->label(__('manage.city'))->required(),
])
])->reactive()->createOptionUsing(function($data, Forms\Set $set){
$location = new Location();
$location->organisation_id = $this->organisation->id;
$location->fill($data);
$location->save();
$set('location_id', $location->id);
return $location->id;
}),
Select::make('location_id')
->label(__('manage.location'))
->options(fn() => $this->organisation->locations->pluck('label', 'id'))
->createOptionForm([
SingleLayout::make()->schema([
TextInput::make('name')->label(__('manage.name_location'))->required(),
TextInput::make('address')->label(__('manage.address')),
TextInput::make('zipcode')->label(__('manage.zipcode')),
TextInput::make('city')->label(__('manage.city'))->required(),
])
])->reactive()->createOptionUsing(function($data, Forms\Set $set){
$location = new Location();
$location->organisation_id = $this->organisation->id;
$location->fill($data);
$location->save();
$set('location_id', $location->id);
return $location->id;
}),
3 replies
FFilament
Created by Wiebe on 10/13/2023 in #❓┊help
Open image editor after upload
Is it possible to open the image editor automaticly after an upload?
3 replies
FFilament
Created by Wiebe on 10/11/2023 in #❓┊help
Require cropping to a certain size before submitting
Is there a way to require the user to crop the image to a certain ratio?
6 replies
FFilament
Created by Wiebe on 10/11/2023 in #❓┊help
Change primary color when not using custom frontend (no panel)
How can i change the primary color when not using the panel? I'm using custom blade templates/layouts
3 replies
FFilament
Created by Wiebe on 9/7/2023 in #❓┊help
Reset form data in action
I've got an action with a form, within that action i've got another action, with that action i want to reset the form data but it doesnt seem to do anything.
protected function setUp(): void {
parent::setUp();

$this->modalCancelAction(false)
->modalSubmitAction(false)
->extraModalFooterActions([
Action::make('next')
->action(function($record){
$this->resetFormData();
})
]);

$this->mountUsing(function (ComponentContainer $form, ManufacturingOrder $order){
$form->fill([
'status' => $order->status,
]);
});

$this->form([
Select::make('status')->options([
'open' => 'Open',
'finished' => 'Finished',
})->afterStateUpdated(function ($record, $state) {
$record->update(['status' => $state])
})->reactive()
])

->action(function($data, $record){
dd($data, $record);
});
}
protected function setUp(): void {
parent::setUp();

$this->modalCancelAction(false)
->modalSubmitAction(false)
->extraModalFooterActions([
Action::make('next')
->action(function($record){
$this->resetFormData();
})
]);

$this->mountUsing(function (ComponentContainer $form, ManufacturingOrder $order){
$form->fill([
'status' => $order->status,
]);
});

$this->form([
Select::make('status')->options([
'open' => 'Open',
'finished' => 'Finished',
})->afterStateUpdated(function ($record, $state) {
$record->update(['status' => $state])
})->reactive()
])

->action(function($data, $record){
dd($data, $record);
});
}
8 replies
FFilament
Created by Wiebe on 8/3/2023 in #❓┊help
Exception when using Vapor with Octane
I'm getting the following error:
Filament\Panel::getDefaultTheme(): Return value must be of type Filament\Support\Assets\Theme, null returned (View: /var/task/vendor/filament/filament/resources/views/components/layout/base.blade.php) (View: /var/task/vendor/filament/filament/resources/views/components/layout/base.blade.php) (View: /var/task/vendor/filament/filament/resources/views/components/layout/base.blade.php)
Filament\Panel::getDefaultTheme(): Return value must be of type Filament\Support\Assets\Theme, null returned (View: /var/task/vendor/filament/filament/resources/views/components/layout/base.blade.php) (View: /var/task/vendor/filament/filament/resources/views/components/layout/base.blade.php) (View: /var/task/vendor/filament/filament/resources/views/components/layout/base.blade.php)
4 replies
FFilament
Created by Wiebe on 8/3/2023 in #❓┊help
CSS variables not working?
2 replies
FFilament
Created by Wiebe on 8/1/2023 in #❓┊help
Ignore tenant on certain resources
It it possible to ignore the tenant on certain resources?
9 replies
FFilament
Created by Wiebe on 3/30/2023 in #❓┊help
UUID as url key in resource
How can i use the uuid field as the route parameter for resources, i want to keep the id field as the primary field for the model.
2 replies