F
Filamentβ€’7mo ago
ocram82

Teacher List with week day and hour

Hi, i've to represent a table as the attached one. What the best way to represent it? I've just the list of teacher from the database teachers table. How can i edit the class and section inside it?
No description
Solution:
Well, then you shouldn't specify that you want to
Jump to solution
15 Replies
Dennis Koch
Dennis Kochβ€’7mo ago
I guess it's best to build a custom table for this one πŸ˜…
ocram82
ocram82β€’7mo ago
ok so the best is to use a Livevire table? i'm thinking to use a table with this fields: teacher_id, weekd_day, class_number, section number
Dennis Koch
Dennis Kochβ€’7mo ago
The technology here is pretty unrelated. I just think that the Filament table has too much whitespace for this kind of info So you are asking about the database design?
ocram82
ocram82β€’7mo ago
database + filament plugin or any kind of filament rapresentation but Filament could not be the best in this case
Dennis Koch
Dennis Kochβ€’7mo ago
I think that should be okay
ocram82
ocram82β€’7mo ago
can i have a custom TALL page for this and show this in my sidebar menu links?
Dennis Koch
Dennis Kochβ€’7mo ago
Sure
ocram82
ocram82β€’7mo ago
ok thanks sorry, i return here because...i've created a custom page in this way:
php artisan make:filament-page SortUsers --resource=UserResource --type=custom
php artisan make:filament-page SortUsers --resource=UserResource --type=custom
but i don't know how to add this to my sidebar menu links
Dennis Koch
Dennis Kochβ€’7mo ago
Usually you would navigate from your ListPage.
ocram82
ocram82β€’7mo ago
Maybe because i haven't a resource UserResource? But my intension was to create a custom blank page... i don't want to associate to any reasources
tesse05
tesse05β€’7mo ago
have you put this new class into filament.php config file?
Dennis Koch
Dennis Kochβ€’7mo ago
Why do you specify UserResource if you don't have one?!
Solution
Dennis Koch
Dennis Kochβ€’7mo ago
Well, then you shouldn't specify that you want to
Dennis Koch
Dennis Kochβ€’7mo ago
If you create a normal page it will be in Pages folder and navigation should work automatically
ocram82
ocram82β€’7mo ago
Ok so i should re run the command without UserResource?
php artisan make:filament-page SortUsers --type=custom
php artisan make:filament-page SortUsers --type=custom
ok done! it works thanks!