Sander
Sander
FFilament
Created by G3z on 8/21/2023 in #❓┊help
open new tab from Bulkaction
Yeah, definitely!
9 replies
FFilament
Created by G3z on 8/21/2023 in #❓┊help
open new tab from Bulkaction
Thanks Leandro!
9 replies
FFilament
Created by G3z on 8/21/2023 in #❓┊help
open new tab from Bulkaction
Yep! thats working 🙂
9 replies
FFilament
Created by G3z on 8/21/2023 in #❓┊help
open new tab from Bulkaction
BulkAction::make('download_packing_slips')
->label('Pakbonnen downloaden')
->action(function (Collection $records): void {
$invalidStatuses = ['new', 'onhold', 'cancelled'];

$invoiceIds = $records->reject(function ($record) use ($invalidStatuses) {
return in_array($record->status, $invalidStatuses);
})->map(function ($record) {
return optional($record->invoices()->where('type', 'debit')->latest()->first())->invoice_id;
})->filter()->implode(',');

$url = route('bulk.download.packing-slips', ['ids' => $invoiceIds]);

dd($url); // how to open this url in a new tab???
})
BulkAction::make('download_packing_slips')
->label('Pakbonnen downloaden')
->action(function (Collection $records): void {
$invalidStatuses = ['new', 'onhold', 'cancelled'];

$invoiceIds = $records->reject(function ($record) use ($invalidStatuses) {
return in_array($record->status, $invalidStatuses);
})->map(function ($record) {
return optional($record->invoices()->where('type', 'debit')->latest()->first())->invoice_id;
})->filter()->implode(',');

$url = route('bulk.download.packing-slips', ['ids' => $invoiceIds]);

dd($url); // how to open this url in a new tab???
})
9 replies
FFilament
Created by G3z on 8/21/2023 in #❓┊help
open new tab from Bulkaction
That's exactly what i'm also looking for (but for packing slips instead)
9 replies
FFilament
Created by Sander on 5/4/2023 in #❓┊help
Different resources on central/tenant domain using stancl/tenancy
ping @danharrin
35 replies
FFilament
Created by Sander on 5/4/2023 in #❓┊help
Different resources on central/tenant domain using stancl/tenancy
Thanks, alright, can you confirm the dynamic resource path part? 🙂
35 replies
FFilament
Created by Sander on 5/4/2023 in #❓┊help
Different resources on central/tenant domain using stancl/tenancy
Thanks @cvc_web will look into Laravel modules! @danharrin Are you saying that this is "natively" possible in V3? If so i'll wait for V3 as i'm still building the Tenant side admin/functionality.
35 replies
FFilament
Created by Sander on 5/4/2023 in #❓┊help
Different resources on central/tenant domain using stancl/tenancy
Thanks for both your input! Never seen #multi-context think this will do it. Thanks.
35 replies
FFilament
Created by Sander on 5/4/2023 in #❓┊help
Different resources on central/tenant domain using stancl/tenancy
Is this doable? I was also thinking about using policies, but the above would make things a lot more easy. Has anyone a idea?
35 replies
FFilament
Created by BKF Dev on 4/23/2023 in #❓┊help
stancl/tenancy main domain issue
Thanks for this
7 replies
FFilament
Created by Sander on 3/23/2023 in #❓┊help
Reusable schema
thanks for the help, much appreciated!
7 replies
FFilament
Created by Sander on 3/23/2023 in #❓┊help
Reusable schema
I made a form-layout and put the schema in the getChildComponents() method and works now.
7 replies