rg.block
rg.block
FFilament
Created by MoreiraME2 on 1/22/2024 in #❓┊help
data does not appear on the form when editing a repeater
I am assuming your create code is inside the Createxxxx.php file under the Pages directory. Do you have the repeater code inside your form method in your resource code? The edit form gets created from that section or by the specific code you might have inside your panel resource edit page.
11 replies
FFilament
Created by rg.block on 1/20/2024 in #❓┊help
Saving repeater with relationship as json
Yes, appreciate that reminder. I think I just carried along this way because I was looking at the structure wrong. I was not seeing this as trying to save the documents relationship as json but instead just trying to save the form data inside a field within the relationship just like I would save the document name in the name column of my documents table if I had Textinput::make('name').
10 replies
FFilament
Created by rg.block on 1/20/2024 in #❓┊help
Saving repeater with relationship as json
I did managed to get it working using mutate, but then the issue was on the edit portion trying to make it fill the forms inside the tabs.
10 replies
FFilament
Created by rg.block on 1/20/2024 in #❓┊help
Saving repeater with relationship as json
I see. My main issue is the amount of fields I have inside the repeater along with some conditional logic that shows different tabs depending on the value of a select. To explain it a different way, each one of my documents can have different supporting data (form_data) based on the type of document it is, I then render different tabs within the repeated based on that type, and ideally I wanted to save that data as json on a column inside my documents table. Initially I thought about having a table for each one of the forms, and have each table have columns that match each of the fields on the form, I am just trying to avoid that since I am not really going to be querying the data individually and I need is to present it when viewing the record.
10 replies
FFilament
Created by Absolium on 5/27/2023 in #❓┊help
brand logo not showing
Just the naming used on v2 vs v3
96 replies
FFilament
Created by Absolium on 5/27/2023 in #❓┊help
brand logo not showing
resources/views/vendor/filament-panels/components/logo.blade.php
96 replies
FFilament
Created by Absolium on 5/27/2023 in #❓┊help
brand logo not showing
On v3 is filament-panels
96 replies
FFilament
Created by Absolium on 5/27/2023 in #❓┊help
brand logo not showing
Check the directory structure
96 replies
FFilament
Created by Absolium on 5/27/2023 in #❓┊help
brand logo not showing
96 replies
FFilament
Created by Absolium on 5/27/2023 in #❓┊help
brand logo not showing
Then the file needs to be logo.blade.php instead of brand.blade.php
96 replies
FFilament
Created by Absolium on 5/27/2023 in #❓┊help
brand logo not showing
You are not on filament v3, correct?
96 replies
FFilament
Created by rg.block on 9/6/2023 in #❓┊help
Unable to get notification broadcasted to pusher
While I continue to try to get this to work, I found a discussion about broadcast notifications on github. Not directly database notifications but the core should be the same. Dan mentions that filament takes care of loading Echo. So with that, I have removed my custom js file, and inside my component blade file I added this to listen to the event: window.onload=function(){ Echo.private('App.Models.User.${userId}') .listen('.database-notifications.sent', (e) => { console.log(e); }); } The issue is that Echo shows as undefined. Mind it, I suck as js so I could be missing something super basic, but I believe I have followed everything step by step (filament docs, Echo/broadcasting and pusher docs). Even more weird is that either people dont really have issues with this, or not a lot of them are using it since the questions related to this are not a lot, and the ones here and on github are pretty much unanswered.
8 replies
FFilament
Created by cobrABite on 8/25/2023 in #❓┊help
How to handel filament/filament 3.x-dev requires filament/support 3.x-dev -> satisfiable by filament
Can you share what you have on your composer.json file? There are several other questions regarding this, the issue points to having the wrong required version for one of the packages.
6 replies
FFilament
Created by rg.block on 8/23/2023 in #❓┊help
->extraAttribute not working on TextInput
I did that as well and nothing
67 replies
FFilament
Created by rg.block on 8/23/2023 in #❓┊help
->extraAttribute not working on TextInput
No, I added: ->extraInputAttributes(['class' => '!text-teal-600 !disabled:[-webkit-text-fill-color:theme(colors.teal.600)]'])
67 replies
FFilament
Created by rg.block on 8/23/2023 in #❓┊help
->extraAttribute not working on TextInput
67 replies
FFilament
Created by rg.block on 8/23/2023 in #❓┊help
->extraAttribute not working on TextInput
67 replies
FFilament
Created by rg.block on 8/23/2023 in #❓┊help
->extraAttribute not working on TextInput
67 replies
FFilament
Created by rg.block on 8/23/2023 in #❓┊help
->extraAttribute not working on TextInput
TextInput::make('status') ->label('Status') ->extraInputAttributes(['class' => '!text-teal-600']) ->disabled(),
67 replies
FFilament
Created by rg.block on 8/23/2023 in #❓┊help
->extraAttribute not working on TextInput
yeah, then I added ->extraInputAttributes as mentioned by Med and Dennis, but no luck yet
67 replies