Abdellah
Abdellah
FFilament
Created by Abdellah on 10/30/2024 in #❓┊help
Textarea value from api
Okay
13 replies
FFilament
Created by Abdellah on 10/30/2024 in #❓┊help
Textarea value from api
Yes. It's live. Maybe I am doing something not right
Textarea::make('public-key')
->live()
->visible(fn (Get $get) => $get('credential_id') !== null && $get('ssh-key') !== null)
->formatStateUsing(function (Get $get) {
if ($get('credential_id') !== null) {
$credential = Credential::find($get('credential_id'));
$client = new ApiClient($credential->id);
return $client?->getSshKeys()?->first()['public_key'];
}
})
Textarea::make('public-key')
->live()
->visible(fn (Get $get) => $get('credential_id') !== null && $get('ssh-key') !== null)
->formatStateUsing(function (Get $get) {
if ($get('credential_id') !== null) {
$credential = Credential::find($get('credential_id'));
$client = new ApiClient($credential->id);
return $client?->getSshKeys()?->first()['public_key'];
}
})
13 replies
FFilament
Created by Abdellah on 10/30/2024 in #❓┊help
Textarea value from api
Creating a resource
13 replies
FFilament
Created by Abdellah on 10/30/2024 in #❓┊help
Textarea value from api
Inside a resource
13 replies
FFilament
Created by Abdellah on 10/30/2024 in #❓┊help
Textarea value from api
Thanks @JibayMcs . Unforturnately, it's not working
13 replies
FFilament
Created by Abdellah on 10/17/2024 in #❓┊help
The model does not have a relationship named [team]
Thank you @toeknee
4 replies
FFilament
Created by Abdellah on 7/5/2024 in #❓┊help
Get the value of a field from a suffixAction
Whoa! @Leandro Ferreira , I am speechless. Thank you a million times for this life-saving solution. You earn my respect.
7 replies
FFilament
Created by Abdellah on 7/5/2024 in #❓┊help
Get the value of a field from a suffixAction
on the main form and not the modal form of the suffixAction @Leandro Ferreira
7 replies
FFilament
Created by Abdellah on 6/9/2024 in #❓┊help
Dispatch event in lifecycle hook
Thank you manifold @prowler. My bad. I did not register the event.
4 replies
FFilament
Created by Abdellah on 5/29/2024 in #❓┊help
Show a list of options based on another field
You're a king @dissto . Thank you a million times.
4 replies
FFilament
Created by Abdellah on 5/13/2024 in #❓┊help
Save a field when creating a model
Hey @Sjoerd24, thank you for the input. Please can you elaborate on the observer case? I am a little new to Laravel after doing exclusively Symfony for like 4 years.
5 replies
FFilament
Created by Abdellah on 5/9/2024 in #❓┊help
Inject an HttpClient into a Filament Page
Thank you @pboivin
4 replies