lacymj
lacymj
FFilament
Created by treii28 on 9/26/2024 in #❓┊help
Run a javascript function when table is redrawn
Any updates on this issue (I'm having the same trouble). In fact, I can't get any javascript to run from filament.
12 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
Basically, I created a relationship back through itself and messed with the id's to get it to work
16 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
Tables\Columns\TextColumn::make('jockey_entries_count') ->label('Entries') ->counts('jockey_entries'),
16 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
Then added this to the table the table
16 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
public function jockey_entries() { return $this->hasManyThrough(Entry::class, Jockey::class, 'id', 'jockey_id', 'jockey_id', 'id'); }
16 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
sure - I added this relation to the Entry model...
16 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
I figured out a way to make this work. To answer, jockey_count works fine, but as you say, theres only one Jockey per Entry - I'm looking for a count of all the other Entries (total entry count) for that particular Jockey.
16 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
I'm trying to show how many total entries a jockey has (basically the same data I'm showing on the Jockey resource), I just need it on the Entry resource as well. I was able to brute force it, but it seems like using the existing relationships would be more logical.
16 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
It feels like I'm dancing around the solution, but haven't quite found the right combo 😉
16 replies
FFilament
Created by lacymj on 9/16/2024 in #❓┊help
Counting relationships
Thanks for the response. I tried adding a jockeyEntries relationship to the Entry model and referencing jockey_entries but I get the same error - Call to undefined method App\Models\Entry::jockey_entries()
16 replies
FFilament
Created by lacymj on 9/10/2024 in #❓┊help
How do I move custom NavigationItems to right side of Topbar?
all good - thanks
8 replies
FFilament
Created by lacymj on 9/10/2024 in #❓┊help
How do I move custom NavigationItems to right side of Topbar?
/* move login button to the right side / .fi-topbar-item:nth-of-type(3) { @apply absolute right-36; } / move register button to the right side */ .fi-topbar-item:nth-of-type(4) { @apply absolute right-4; }
8 replies
FFilament
Created by lacymj on 9/10/2024 in #❓┊help
How do I move custom NavigationItems to right side of Topbar?
I added this css to the custom theme...
8 replies
FFilament
Created by lacymj on 9/10/2024 in #❓┊help
How do I move custom NavigationItems to right side of Topbar?
thank you - I'm not very familiar with the PR process - can I just make the request or do I need to update the code and submit?
8 replies