Comments (2)
hello @pegelf I don't understand the problem very well, in principle the name of the table/database is not relevant, it can be anything.
from resource-generator.
Yes, it can be everything but it will be included in the name. For example when I have these tables:
- cms_customers
- cms_products
- cms_users
Then these models will be generated:
- CmsCustomers
- CmsProducts
- CmsUsers
But of course it should be:
- Customers
- Products
- Users
To achieve that, I think the easiest way to support database prefixes is to read the setting in config/database.php.
from resource-generator.
Related Issues (20)
- Table columns are not read when using MariaDB and an enum field HOT 3
- [BUG] show tables on Postgres
- [FR] Allow cutomizing Resources Namespace HOT 4
- [FR] allow custom model path or chose it from a list ! HOT 8
- Search fields when creating resource HOT 4
- [BUG] Models are generated in wrong dir
- [FR] support multiple DB connection HOT 1
- Feature Request - Change default value for Show In fields HOT 2
- Add support for Laravel 5.8 HOT 1
- Problem with indenting HOT 1
- Receiving Undefined method camel_caseI() HOT 1
- No Tables? HOT 2
- Add Laravel 6 support HOT 3
- Call to undefined function str_plural() HOT 1
- Please check all data. You have some mandatory field. HOT 6
- Laravel 8 support HOT 1
- DOes this still work? HOT 1
- Nova 4 HOT 2
- Nova 4 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resource-generator.