Download the PHP package giacomomasseron/laravel-models-generator without Composer
On this page you can find all versions of the php package giacomomasseron/laravel-models-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download giacomomasseron/laravel-models-generator
More information about giacomomasseron/laravel-models-generator
Files in giacomomasseron/laravel-models-generator
Package laravel-models-generator
Short Description Generate Laravel models from an existing database
License MIT
Homepage https://github.com/giacomomasseron/laravel-models-generator
Informations about the package laravel-models-generator
Generate Laravel models from an existing database
Generate Laravel models from an existing database.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Drivers supported
- MySQL
- SQLite
Coming soon ... all drivers supported by doctrine/dbal.
Polymorphic relationships
To add polymorphic relationships to your models, you can use morphs
array in the config file.
If you have tables like this:
And config file like this:
This relationship will be created in the Image
model:
This relationship will be created in the Post
model:
Interfaces
If you want your models implement interface(s), use interfaces
value in config:
Traits
If you want your models use trait(s), use traits
value in config:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Giacomo Masseroni
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-models-generator with dependencies
doctrine/dbal Version ^4.1
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16