Singleton resource panels / custom additional stubs #13820
bchubb-web
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Agreed! Such an important part of a cms in my opinion. Hate having to do workarounds, which work fine with simple stuff, but gets unnecesarily complex as soon as you introduce things like translations. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wouldn't be surprised if this has been brought up before, but i was wondering if a native implementation of a resource that manages a single instance of a model was on the roadmap for v4.x, it is something i implement myself in pure laravel projects and assumed filament would provide an option for this like --single
I find this useful for global config or resources that represent something specific like a legal page on a site.
If not, a more flexible option would be to add a --type flag (like laravel's make:x commands) to specify a custom stub template, so users could have resource.foo.sub, rather than overwriting the published resource.stub
Beta Was this translation helpful? Give feedback.
All reactions