Aaron Lawrence
Aaron Lawrence
FFilament
Created by !!AhmedDev 🕊 on 8/18/2024 in #❓┊help
The submit button not disabled when indicator loading ...
😄
12 replies
FFilament
Created by !!AhmedDev 🕊 on 8/18/2024 in #❓┊help
The submit button not disabled when indicator loading ...
I wanted to say something myself 🤐
12 replies
FFilament
Created by N. Jacobsen on 9/5/2023 in #❓┊help
Tenancy Create Category
Have you configured tenancy correctly? It's getting returned as boolean when it should return a model instance. It is possible due to how you have done your relationship from the User to the Team models. If i had to guess.
5 replies
FFilament
Created by Aaron Lawrence on 9/5/2023 in #❓┊help
Access handleRecordCreation on resource
I really appreciate the feedback I guess that's what I'll do 😃
8 replies
FFilament
Created by Aaron Lawrence on 9/5/2023 in #❓┊help
Access handleRecordCreation on resource
Okay, this is nice to know though, it kind of means I'm not heading in a wrong direction 😔
8 replies
FFilament
Created by Aaron Lawrence on 8/1/2023 in #❓┊help
Losing focus on TextInput class in actions form.
Still the same, unfortunately.
5 replies
FFilament
Created by Aaron Lawrence on 8/1/2023 in #❓┊help
Losing focus on TextInput class in actions form.
Worth noting, that the format time just returns a string.
public function formatTime($userTime): ?string
{
if (strlen($userTime) === 4) {
$formattedTime = $userTime;

if (!empty($userTime)) {

$userCarbon = Carbon::parse($userTime);

// Round minutes up
$roundedMinutes = ceil($userCarbon->minute / 15) * 15;

$userCarbon->setTime($userCarbon->hour, $roundedMinutes);

// Validate time is within 24 hour range
if ($userCarbon->hour >= 0 && $userCarbon->hour < 24 && $userCarbon->minute >= 0 && $userCarbon->minute < 60) {
$formattedTime = $userCarbon->format('H:i');
}
}

return str_replace(':', '', $formattedTime);
}

return $userTime;
}
public function formatTime($userTime): ?string
{
if (strlen($userTime) === 4) {
$formattedTime = $userTime;

if (!empty($userTime)) {

$userCarbon = Carbon::parse($userTime);

// Round minutes up
$roundedMinutes = ceil($userCarbon->minute / 15) * 15;

$userCarbon->setTime($userCarbon->hour, $roundedMinutes);

// Validate time is within 24 hour range
if ($userCarbon->hour >= 0 && $userCarbon->hour < 24 && $userCarbon->minute >= 0 && $userCarbon->minute < 60) {
$formattedTime = $userCarbon->format('H:i');
}
}

return str_replace(':', '', $formattedTime);
}

return $userTime;
}
5 replies
FFilament
Created by Pablo Torres on 7/31/2023 in #❓┊help
Conditionally hide action button.
6 replies
FFilament
Created by Aaron Lawrence on 7/26/2023 in #❓┊help
RelationshipManager Table Actions.
Thank you.
5 replies