tommy_jeanslow
tommy_jeanslow
FFilament
Created by tommy_jeanslow on 7/18/2024 in #❓┊help
Action group dropdown menu goes off page
No description
6 replies
FFilament
Created by tommy_jeanslow on 1/16/2024 in #❓┊help
Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::save()
Hi! Hoping for some guidance. I can edit a form field and it will save no problem, but creating a new entry throws this error: Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::save() Entry:
Forms\Components\TextInput::make('member_id'),`
Forms\Components\TextInput::make('member_id'),`
Model:
public function member(): BelongsTo
{
return $this->belongsTo(Member::class);
}
public function member(): BelongsTo
{
return $this->belongsTo(Member::class);
}
Thank you.
4 replies
FFilament
Created by tommy_jeanslow on 12/11/2023 in #❓┊help
JSON TextColumn formatStateUsing badge repeats
I am trying to show a badge for my JSON column. Everything works properly, but it repeats based on how many entries I have. I tried using limitList() however it will say "and X more".
Tables\Columns\TextColumn::make('attachments')
->formatStateUsing(fn ($state) => $state != null ? 'Attachment' : "")
->badge(),
Tables\Columns\TextColumn::make('attachments')
->formatStateUsing(fn ($state) => $state != null ? 'Attachment' : "")
->badge(),
Any help is appreciated 🙂
7 replies
FFilament
Created by tommy_jeanslow on 10/1/2023 in #❓┊help
Error using $rowLoop
I previously asked how to number each row and was directed to use $rowLoop in the documentation. I have use the example in the documentation and get the following error: get_class(): Argument #1 ($object) must be of type object, int given line 43: ($livewire->getTableRecordsPerPage * ( If I change getTableRecordsPerPage it works, but if using the excel export plugin: Undefined property: stdClass::$iteration line 61: $rowLoop->iteration + Is this a bug?
11 replies
FFilament
Created by tommy_jeanslow on 9/29/2023 in #❓┊help
Numbering rows
I'm new to laravel and filament, but find i'm a bit stumped on this. With traditional PHP i would create a counter and output in my loop or use mysql's ROW_NUMBER. What is the best way to do this? I couldn't find a built in function within filament.
4 replies
FFilament
Created by tommy_jeanslow on 4/5/2023 in #❓┊help
Value from another field
Sorry for the very simple question. I am very new to laravel and therefore filament. Inside my form, how do I get the value from a textinput (name) into another textinput (name_copy).
7 replies