F
Filamentβ€’17mo ago
at92

[v3] Can panels be related to a model?

I'm looking to develop an app with multiple panels. The "main" panel is where users create projects and manage other minor things. Each project would then have have it's own panel with all the resources related to the project. The "project's panel" would be on an url like project/uuid if that makes sense. Is this possible with v3? Thank you πŸ™
6 Replies
Dan Harrin
Dan Harrinβ€’17mo ago
yeah you could use the tenancy feature for this!
at92
at92OPβ€’17mo ago
Thanks a lot Dan, appreciate your work a lot. How would I go about making the url of the 2nd panel dynamic? πŸ€”
Dan Harrin
Dan Harrinβ€’17mo ago
dynamic?
at92
at92OPβ€’17mo ago
Sorry what I meant was binding a model to the url of the 2nd panel like project/{item:uuid}. So something like:
use Filament\Panel;

public function panel(Panel $panel): Panel
{
return $panel
// ...
->path('project/{item:uuid}');
}
use Filament\Panel;

public function panel(Panel $panel): Panel
{
return $panel
// ...
->path('project/{item:uuid}');
}
Dan Harrin
Dan Harrinβ€’17mo ago
you can use the tenancy feature for that
Want results from more Discord servers?
Add your server