CodeMax
CodeMax
FFilament
Created by CodeMax on 9/29/2023 in #❓┊help
using ENUM class on Forms->Select Field return error
Im pretty sure it worked the whole time. Can you try updating composer dependencies to the latest versions of filament pls?
6 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
@awcodes this is working btw:
Tables\Columns\TextColumn::make('dates')
->getStateUsing(function ($record) {
return $record->dates[0]['date'];
})
->label("Datum"),
Tables\Columns\TextColumn::make('dates')
->getStateUsing(function ($record) {
return $record->dates[0]['date'];
})
->label("Datum"),
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
Filament does not let me name the Table Field the same as the Form field... array to string error
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
i know. but debugging is not working. As i wrote… as soon as i name the TextColumn dates i get the array to string error. If i name it differntly i can not dd...
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
No description
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
No description
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
No description
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
Forms\Components\Repeater::make('dates'). see first message
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
dates is the name of the repeater
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
if i name the field "dates"
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
Then i get the error Array to string conversion
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
the return you sent is missing the dates isn't it?
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
is cast as array
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
That is the weird part. Errors are executed and shown, but i can not dd nor Debugbar::info() anything a this point. I am within a RelationsManager. Might this be part of the problem?
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
Still no return. Is still empty even though there's an entry in the db
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
No description
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
@awcodes thanks - can you show me how this is done in my example? I only get an "array to string" conversion error. my dates json field looks like this:
[
{
"date": "2023-09-29",
"end_time": "20:35",
"location": "21",
"start_time": "18:34"
}
]
[
{
"date": "2023-09-29",
"end_time": "20:35",
"location": "21",
"start_time": "18:34"
}
]
39 replies
FFilament
Created by CodeMax on 9/21/2023 in #❓┊help
Show Repeaters first entry in Table View
No description
39 replies