Dwayne
Dwayne
FFilament
Created by Dwayne on 3/29/2024 in #❓┊help
The session is not shared across multiple domains with tenancy
Do you have any idea how to solve this? You say a middleware and then redirect, but what should I send along? Something for the session/cookies?
17 replies
FFilament
Created by Dwayne on 3/29/2024 in #❓┊help
The session is not shared across multiple domains with tenancy
Ah okay, thought Filament takes care of this too. That explains why it doesn't work.
17 replies
FFilament
Created by Dwayne on 3/29/2024 in #❓┊help
The session is not shared across multiple domains with tenancy
Unfortunately, thank you! The documentation indicates that it is possible, see https://filamentphp.com/docs/3.x/panels/tenancy#using-a-domain-to-identify-the-tenant.
17 replies
FFilament
Created by Dwayne on 3/29/2024 in #❓┊help
The session is not shared across multiple domains with tenancy
How can I ensure that someone logs into the main application and gets redirected to their own domain without losing the login?
17 replies
FFilament
Created by Dwayne on 3/29/2024 in #❓┊help
The session is not shared across multiple domains with tenancy
Does anyone have an idea how to solve this?
17 replies
FFilament
Created by Dwayne on 3/29/2024 in #❓┊help
The session is not shared across multiple domains with tenancy
When I set the tenant domain to app.dashboard.test (a subdomain of the main URL), the session will also be forgotten.
17 replies
FFilament
Created by Dwayne on 3/29/2024 in #❓┊help
The session is not shared across multiple domains with tenancy
17 replies
FFilament
Created by Dwayne on 3/28/2024 in #❓┊help
Table pagination not visible in cluster resource table
That explains it, thank you very much!
5 replies
FFilament
Created by Sourabh on 2/16/2024 in #❓┊help
Global Search Table Column
Where did you place this code?
8 replies
FFilament
Created by Med on 8/20/2023 in #❓┊help
Is there a way to undo Repeater item delete?
Hey Mad! How did you ensure that the variants are created automatically? So the Red / large, Red / small etc.
17 replies
FFilament
Created by Ayman Alhattami on 11/29/2023 in #❓┊help
Dynamic Repeater
Hey Ayman, did you make it?
13 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
It works! Having
php public array $importableStatuses = [];
php public array $importableStatuses = [];
defined in the ListSuppliers makes it work. Thank you so so much for the help!
25 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
Ah, I see! That's unfortunate... Because it's an action in the table on the resource. So I have to make it an CreatePage/EditPage, right?
25 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
Maybe more convenient
25 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
No description
25 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
No description
25 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
Apologies, I'm not understanding... Here's what I have so far:
Forms\Components\Select::make('data.importable_statuses')
->label('Geautomatiseerde orderverwerking')
->options(fn (): Collection =>
collect(
CompanyShopSupplier::where('supplier_id', $record->id)->first()->companyShop->settings->where('setting_name', 'woocommerce_statusses')->first()->setting_value
)->mapWithKeys(fn ($item, $key) => [
$key => $item
])
)
->multiple()
->hintAction(
Forms\Components\Actions\Action::make('refresh_status')
->label('Statussen vernieuwen')
->action(function () {
$shopConnection = ConnectToShop::connect();
$response = $shopConnection->get('reports/orders/totals');

if ($response) {
$statuses = [];
foreach($response as $result) {
$statuses[$result->slug] = $result->name;
}

$updated = CompanyShopSetting::updateOrCreate([
'setting_name' => 'woocommerce_statusses',
], [
'setting_value' => $statuses
]);

if ($updated) {

// Here we need to update the select field "data.importable_statuses" with the $statuses

}
}
})
)
php
Forms\Components\Select::make('data.importable_statuses')
->label('Geautomatiseerde orderverwerking')
->options(fn (): Collection =>
collect(
CompanyShopSupplier::where('supplier_id', $record->id)->first()->companyShop->settings->where('setting_name', 'woocommerce_statusses')->first()->setting_value
)->mapWithKeys(fn ($item, $key) => [
$key => $item
])
)
->multiple()
->hintAction(
Forms\Components\Actions\Action::make('refresh_status')
->label('Statussen vernieuwen')
->action(function () {
$shopConnection = ConnectToShop::connect();
$response = $shopConnection->get('reports/orders/totals');

if ($response) {
$statuses = [];
foreach($response as $result) {
$statuses[$result->slug] = $result->name;
}

$updated = CompanyShopSetting::updateOrCreate([
'setting_name' => 'woocommerce_statusses',
], [
'setting_value' => $statuses
]);

if ($updated) {

// Here we need to update the select field "data.importable_statuses" with the $statuses

}
}
})
)
php
25 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
Yes but how/where do I need to set the some_property
25 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
I don't quite grasp what you mean, I'm still fairly new to Filament. Do you have an example to help me get started?
25 replies
FFilament
Created by Dwayne on 2/20/2024 in #❓┊help
Assign an array to a Forms\Components\Select
Thank you @Dennis Koch for your response! So, it's not possible in any way to set the Select options via the hintAction? We need to show a link to fetch the statuses externally if they don't exist in the database yet.
25 replies