Maagalhaes
Maagalhaes
FFilament
Created by Maagalhaes on 12/7/2023 in #❓┊help
Parameters for index and create is it possible?
Thanks! It worked using url(). I liked the plugin, I'm going to test it in my application.
14 replies
FFilament
Created by Maagalhaes on 12/7/2023 in #❓┊help
Parameters for index and create is it possible?
I know that by default the relation manager header already has an action to add a new record, but I really need to go to the resource, as there will be other relation managers inside.
14 replies
FFilament
Created by Maagalhaes on 12/7/2023 in #❓┊help
Parameters for index and create is it possible?
I want to do it like this: I have the user resource that has a relationship with contracts, this is listed within the user's own editing screen using relation manager. When clicking on add contract, I would like it to open the contract resource on the creation page, but to do so I would need to take that user's ID. Is this possible with resources or would I have to change the way I'm doing it?
14 replies
FFilament
Created by Maagalhaes on 12/7/2023 in #❓┊help
Parameters for index and create is it possible?
The error remains Action::make('create') ->label('Criar contrato') ->action(fn (?Model $record) => redirect()->route('filament.app.resources.contratos.create', ['record' => $record])), I created the resource from the filament command. Looking at the create and index pages, they extend from CreatedRecord and ListRecords in the mount method, they do not receive the record unlike EditRecord. Could this be the case? If so, how can I get around it?
14 replies
FFilament
Created by Maagalhaes on 12/7/2023 in #❓┊help
Parameters for index and create is it possible?
I call it in my relation manager table like this: Action::make('create') ->icon('heroicon-m-pencil-square') ->iconButton() ->action(fn (?Model $record) => redirect()->route('filament.app.resources.contratos.create', $record)), In my ContratoResource: public static function getPages(): array { return [ 'index' => Pages\ListContratos::route('/'), 'create' => Pages\CreateContrato::route('/{record}/create'), 'edit' => Pages\EditContrato::route('/{record}/edit'), ]; } So I get this error: Missing required parameter for [Route: filament.app.resources.contratos.create] [URI: app/contratos/{record}/create] [Missing parameter: record].
14 replies
FFilament
Created by Maagalhaes on 9/5/2023 in #❓┊help
Collapse a menu option
Right. I'll check what I can do to fix this. Thanks.
7 replies
FFilament
Created by Maagalhaes on 9/5/2023 in #❓┊help
Collapse a menu option
Yes that's right. Currently I create everything via Resource and pass the navigationGroup to them.
7 replies
FFilament
Created by Hurruwa on 5/2/2023 in #❓┊help
how to define a global footer?
Thanks. This solved my problem.
12 replies
FFilament
Created by Hurruwa on 5/2/2023 in #❓┊help
how to define a global footer?
I am going to try. Thanks
12 replies
FFilament
Created by Hurruwa on 5/2/2023 in #❓┊help
how to define a global footer?
Hello! I looked for the mentioned file, but I couldn't find it. Is adding the footer globally still done the same way? Thanks!!
12 replies
FFilament
Created by Maagalhaes on 8/15/2023 in #❓┊help
TextInput does not add mask to field
No description
22 replies
FFilament
Created by Maagalhaes on 8/15/2023 in #❓┊help
TextInput does not add mask to field
Do you have a suggestion of what can be done to work around this problem?
22 replies
FFilament
Created by Maagalhaes on 8/15/2023 in #❓┊help
TextInput does not add mask to field
Really, in chrome it works, but in firefox it doesn't.
22 replies
FFilament
Created by Maagalhaes on 8/15/2023 in #❓┊help
TextInput does not add mask to field
I use firefox, I'll try in chrome.
22 replies
FFilament
Created by Maagalhaes on 8/15/2023 in #❓┊help
TextInput does not add mask to field
22 replies
FFilament
Created by Maagalhaes on 8/15/2023 in #❓┊help
TextInput does not add mask to field
No description
22 replies
FFilament
Created by Maagalhaes on 8/15/2023 in #❓┊help
TextInput does not add mask to field
Thanks for answering. I'm using version 3.0 of filament. From the documentation it seems very simple to use, but the field is applying the mask only in the "change", when it loses focus, and alpine.js applies the mask as you type. This package is interesting, I'm going to test it, but I'm still curious why my mask method doesn't work as it should.
22 replies