barrerakj
barrerakj
FFilament
Created by barrerakj on 10/11/2023 in #❓┊help
Add tabs above table in v2
Ok, that sounds to much for something like that. I think it's Livewire issues. I might need to create an other post to address those issues. Thanks a lot!
6 replies
FFilament
Created by barrerakj on 10/6/2023 in #❓┊help
Same exact code on different Fields
Thank you! Can I use another class or do I have to do it in the current extended RelationManager class?
5 replies
FFilament
Created by barrerakj on 9/26/2023 in #❓┊help
Display a custom page after login
Ok, thanks a lot. Can I ask you a bit more about it? There are no certain conditions. I just want to show my custom page after login every single time. The idea of that custom page is for the user to pick some global values. Then I want to show the usual dashboard. I was thinking that I can change the route when the user logs in correctly. Where can I find that? Should I publish some files or something like that?
4 replies
FFilament
Created by barrerakj on 7/3/2023 in #❓┊help
Get info of the selected record in AttachAction
No, that didn't work either
23 replies
FFilament
Created by barrerakj on 7/3/2023 in #❓┊help
Get info of the selected record in AttachAction
That's exactly what I tried and what I was talking about in the other messages, but the closure $get returns null when I do exactly that
23 replies
FFilament
Created by barrerakj on 7/3/2023 in #❓┊help
Get info of the selected record in AttachAction
So, I want to get the info of that $action->getRecordSelect(), so I can populate the 'precioId' and 'existenceId' inputs.
23 replies
FFilament
Created by barrerakj on 7/3/2023 in #❓┊help
Get info of the selected record in AttachAction
Yes, here it is AttachAction::make() ->recordSelectOptionsQuery(fn (Builder $query) => $query->where('existence','>',1)) ->modalWidth('4xl') ->form(fn (AttachAction $action): array => [ Grid::make([ 'default' => 1, 'sm' => 2, ]) ->schema([ $action->getRecordSelect() ->columnSpan('full'), TextInput::make('precioId') ->label('Precio') ->disabled() ->afterStateHydrated(function (callable $get, TextInput $component) { //$component->state(); }), TextInput::make('existenceId') ->label('Existencia') ->default(1) ->disabled(),
23 replies
FFilament
Created by barrerakj on 7/3/2023 in #❓┊help
Get info of the selected record in AttachAction
Also true. However, I tried adding reactive() to the $action->getRecordSelect(), so the closure $get works, but it returns a null, I think reactive() is not working as it does in regular forms/fields.
23 replies
FFilament
Created by barrerakj on 7/3/2023 in #❓┊help
Get info of the selected record in AttachAction
True, I also know hot to set the value in those other couple fields. What I don't know is how to get the data of the selected option.
23 replies
FFilament
Created by barrerakj on 3/30/2023 in #❓┊help
How to refresh form fields after action?
Ok, I was wrong. It does happen in other fields that are not selects. How do I reporte a bug? In Github?
8 replies
FFilament
Created by barrerakj on 3/30/2023 in #❓┊help
How to refresh form fields after action?
As far as I can tell, no, it doesn't happen. Also, since I'm doing this in the View page, if I take any other action, like edit the resource or attach things in the relation manager, the field updates properly.
8 replies
FFilament
Created by barrerakj on 3/30/2023 in #❓┊help
How to refresh form fields after action?
8 replies
FFilament
Created by barrerakj on 3/29/2023 in #❓┊help
How do I change the modal text of a custom Action?
Holly cow, it was the escaped quote I think. I guess I didn't notice that. I'm not even sure why did I not get a warning or other message. Thanks for the help. If it wasn't that, I can't explain why now it works.
5 replies
FFilament
Created by barrerakj on 3/29/2023 in #❓┊help
How do I change the modal text of a custom Action?
That's exactly what I tried. I literally copied the example on the docs
5 replies
FFilament
Created by barrerakj on 3/23/2023 in #❓┊help
How to get the current relationship entry on a RelationManager action?
Ok, thank you. I'll try now and I'll see what's inside that $data.
21 replies
FFilament
Created by barrerakj on 3/23/2023 in #❓┊help
How to get the current relationship entry on a RelationManager action?
Hey, first of all, thanks for your help, I really appreciate it. Also, I've read this docs many, many times https://filamentphp.com/docs/2.x/admin/resources/relation-managers#attaching-and-detaching-records and there's not a single reference to that. Maybe there are some other docs about the AttachAction? I would love to read them. I get what you're saying. That ID is exactly the one that I do not want. Because if I go to the relationship through the ownerRecord, that "product" ID is already in the pivot table, many, many times, since it's a many to many relationship. I just want the last record that Laravel created on that pivot table. Not the "order" record, not the "product" record, the one in between that was created in the pivot table.
21 replies
FFilament
Created by barrerakj on 3/23/2023 in #❓┊help
How to get the current relationship entry on a RelationManager action?
Ok, that's interesting. In my very simple example, what exactly is $data['recordId']? Is it the id of the product? Also, what is $data? Is it an instance of the RelationManager object?
21 replies
FFilament
Created by barrerakj on 3/23/2023 in #❓┊help
How to get the current relationship entry on a RelationManager action?
I want to update a column that must not be updated in the form.
21 replies
FFilament
Created by barrerakj on 3/23/2023 in #❓┊help
How to get the current relationship entry on a RelationManager action?
I think a Model instance of the current data is only available in forms, not in Relation Manager actions. I know that because I just got an error trying your advice hahaha, not an expert here
21 replies
FFilament
Created by barrerakj on 3/17/2023 in #❓┊help
Configure Spatie Media Library plugin to upload to Digital Ocean
Awesome, thank you so much, that makes so much sense! I guess that's a variable for my .env file, right?
5 replies