Multi CreateAction On Samepage Triggering multiple

i dont know whats happening i try adding id to some createaction but not found Thx U
2 Replies
LeandroFerreira
LeandroFerreira9mo ago
could you share the code?
jepewsykes
jepewsykesOP9mo ago
CreateAction::make() ->hidden(function () { if ($this->record->suratJalan !== null) { return true; } else { return false; } }) ->label('Buat Surat Jalan') ->model(SuratJalan::class) ->createAnother(false) ->icon('heroicon-o-truck') ->successRedirectUrl(fn (Model $record): string => SalesOrderResource::getUrl('view', ['record' => $this->record])) ->mutateFormDataUsing(function (array $data): array { $data['user_id'] = auth()->id(); $data['sales_order_id'] = $this->record->id; $data['customer_id'] = $this->record->customer_id; return $data; }) this is surat jalan CreateAction to much character bro can i just upload the file ? createaction only surat jalan and invoice solved bro i forgot to add name hahaha
Want results from more Discord servers?
Add your server