AgonK
AgonK
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
thank you for you help and remind me xD
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
yes I checked with debug never go to my endponit, however I do not need this because I will use directly to my service cointainer instead of endpoint
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
yes you are right, I also call service function instead API route The error of second solution is cURL error 28: Operation timed out after 30005 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:8000/api/invoices/monthly?title=AutoGenerate
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
okay but how its the right way to use my existing API using actions
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
I excpect the response to by my api response
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
I want to use to send notification, but the response is only route as a string generate-monthly-invoices/title=Auto generate
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
there is no error
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
yes Dennis, nothing work. I don't have any response only click the button and nothing happend
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
@Anik
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
and send response to this action only for generating notification
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
I don't need any form, I will only generate in my API route
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
no, only button inside my resource
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
I excepted to do something like this Action::make('generate_invoices') ->label(('filament.generate_monthly_invoice')) ->icon('heroicon-o-document-duplicate') ->tooltip(('filament.generate_monthly_invoice')) ->action(function (){ $response = route('generate-monthly-invoices', ['title'=>'Auto generate']); }), or ->action(function (){ $response = Http::get(route('generate-monthly-invoices', ['title'=>'Auto generate'])); }), but nothing works @Anik
26 replies
FFilament
Created by AgonK on 5/16/2024 in #❓┊help
how to integrate existing APIs with filament
Throw break the request but message doesn’t appear
21 replies
FFilament
Created by AgonK on 5/16/2024 in #❓┊help
how to integrate existing APIs with filament
@Dan Harrin this throw doesnt show any message like notification message. Did I miss something
21 replies
FFilament
Created by AgonK on 5/16/2024 in #❓┊help
how to integrate existing APIs with filament
Sounds good! How can I throw? Inside the handle method ?
21 replies
FFilament
Created by AgonK on 5/16/2024 in #❓┊help
how to integrate existing APIs with filament
How can I do that in short term @Dan Harrin
21 replies
FFilament
Created by AgonK on 5/16/2024 in #❓┊help
how to integrate existing APIs with filament
Without doing anything
21 replies
FFilament
Created by AgonK on 5/16/2024 in #❓┊help
how to integrate existing APIs with filament
Hmm no I think I don’t need for override entire method. What I need is to make compatible with APIs response conventions. If status is false I want to show the message property and tell the user the error
21 replies
FFilament
Created by AgonK on 5/16/2024 in #❓┊help
how to integrate existing APIs with filament
Yes its work perfect with handleRecordCreation. But this method returns model instance. What if I need to get other type of response like status and message from api. How can I integrate it within this method @Dan Harrin
21 replies