titoshadow
titoshadow
FFilament
Created by titoshadow on 10/15/2024 in #❓┊help
Change uploaded file permissions
Do you really intend to be useful or are just commenting by the sake of it ? No offense, but first you question my attempt, then continue randomly questioning. Yes, chmod is a PHP command, you can check this by yourself. Finally, I have solved this issue by workaround, setting the file permissions before using it, which is not ideal, but works. From what I've been able to investigate, it seems "local" storage has this kind of issues with visibility and permissions set. I think I'm opening an issue on github.
7 replies
FFilament
Created by titoshadow on 10/15/2024 in #❓┊help
Change uploaded file permissions
Since its an ssh key, I wouldn't be able to use it if its not 0600
7 replies
FFilament
Created by titoshadow on 8/24/2024 in #❓┊help
Reuse infolist modal from resource on Notification view action
For the record:
class CustomInfolist extends Component
{
return [ ... ];
}
class CustomInfolist extends Component
{
return [ ... ];
}
Thank you very much !
9 replies
FFilament
Created by titoshadow on 8/24/2024 in #❓┊help
Reuse infolist modal from resource on Notification view action
9 replies
FFilament
Created by titoshadow on 9/19/2024 in #❓┊help
InfoList max width
My bad, didnt understand you were refering to ViewAction, I was trying to get that from infoList method Got it right now ❤️
15 replies
FFilament
Created by titoshadow on 9/19/2024 in #❓┊help
InfoList max width
No description
15 replies
FFilament
Created by titoshadow on 9/19/2024 in #❓┊help
InfoList max width
In CSS, this element width (at least, the one I want to control) is modified by .max-w-4xl
15 replies
FFilament
Created by titoshadow on 9/19/2024 in #❓┊help
InfoList max width
I'm afraid that methods are not available when defining an InfoList within a Resource 😦
15 replies
FFilament
Created by titoshadow on 9/19/2024 in #❓┊help
InfoList max width
Nope, I'm afraid I'm talking about the base modal, not the key value entry
15 replies
FFilament
Created by titoshadow on 9/19/2024 in #❓┊help
InfoList max width
In a modal, the kind that opens with viewaction
15 replies
FFilament
Created by Barbaracrlp on 5/6/2024 in #❓┊help
change "Dashboard" title
Sorry for necroposting, but this is not useful when translations are involved and you try to override AdminPanelProvider Dashboard title, navigation menu still shows "Escritorio" in Spanish
6 replies
FFilament
Created by titoshadow on 8/24/2024 in #❓┊help
Reuse infolist modal from resource on Notification view action
Thank you for answering! I'm talking about using an already created infolist (the one I defined on my ModelResource):
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
TextEntry::make('category'),
TextEntry::make('source_ip'),
TextEntry::make('source_port'),
...
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
TextEntry::make('category'),
TextEntry::make('source_ip'),
TextEntry::make('source_port'),
...
from what you wrote, I understand I would be generating a new empty infolist, right ? Thats not what I'm asking for. Instead, I'm talking about something like ExampleResource::getInfolist()
9 replies
FFilament
Created by titoshadow on 8/24/2024 in #❓┊help
Reuse infolist modal from resource on Notification view action
No one? Is an obvious question?
9 replies
FFilament
Created by titoshadow on 8/2/2024 in #❓┊help
Custom datetime filter within relation
Okey, I just solved it easily by using whereHas on QueryBuilder
Filter::make('timestamp')
->form([
DateTimePicker::make('time_from')
->seconds(false),
DateTimePicker::make('time_until')
->seconds(false),
])
->query(function (Builder $query, array $data): Builder {
return $query
->when(
$data['time_from'],
fn(Builder $query, $date): Builder => $query->whereHas('event', function ($event) use ($date) {
$event->whereDate('timestamp', '>=', $date);
}),
)
->when(
$data['time_until'],
fn(Builder $query, $date): Builder => $query->whereHas('event', function ($event) use ($date) {
$event->whereDate('timestamp', '<=', $date);
}),
);
})
Filter::make('timestamp')
->form([
DateTimePicker::make('time_from')
->seconds(false),
DateTimePicker::make('time_until')
->seconds(false),
])
->query(function (Builder $query, array $data): Builder {
return $query
->when(
$data['time_from'],
fn(Builder $query, $date): Builder => $query->whereHas('event', function ($event) use ($date) {
$event->whereDate('timestamp', '>=', $date);
}),
)
->when(
$data['time_until'],
fn(Builder $query, $date): Builder => $query->whereHas('event', function ($event) use ($date) {
$event->whereDate('timestamp', '<=', $date);
}),
);
})
Although I feel like there should be (or there actually is) a better way to do this
4 replies