Using filamentphp with database that uses "-" in table names and column names? #17135
Unanswered
anxgstadler
asked this question in
Help
Replies: 1 comment
-
I think you can actually handle this in Laravel by defining custom table and column names. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Panel builder
Package Version
v3
How can we help you?
I'm thinking about using filamentphp for rewriting a customer project.
The customer's external database has dashes in table names ("device-types") and column names ("extended-params", "export-type"). This is something I cannot change and will have to deal with.
Can filamentphp cope with this? How awkward will it be?
I'm totally aware that I will have to escape those identifiers in all my queries, but does filamentphp do its part e.g. when I have a text column in a table that's defined as
TextColumn::make('device-type')
?I've already done a few smaller projects with filamentphp, so I'm not totally new to it, but never hat to deal with this in Laravel.
Thanks for any insight you can provide :-)
(I put in "v3" as package version, but if v4 will have any changes in this regard, feel free to mention them.)
Beta Was this translation helpful? Give feedback.
All reactions