Download the PHP package amohamed/laravelmodelmaker without Composer
On this page you can find all versions of the php package amohamed/laravelmodelmaker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amohamed/laravelmodelmaker
More information about amohamed/laravelmodelmaker
Files in amohamed/laravelmodelmaker
Package laravelmodelmaker
Short Description LaravelModelMaker is a powerful and easy-to-use package for Laravel developers...
License MIT
Informations about the package laravelmodelmaker
Laravel Model Maker
Laravel Model Maker is a package that simplifies the process of generating models, migrations, and relationships in Laravel projects. It provides a set of artisan commands to create models with their corresponding migrations and relationships in a single command.
Features
- Generate models with their corresponding migrations.
- Create relationships (hasOne, hasMany, belongsTo, and belongsToMany) between models.
- Easy to use artisan commands with a simple syntax.
Installation
To install the Laravel Model Maker package, use the following composer command:
It is recommended to only require the package for development.
Usage
To generate a model and its migration, use the generate-model
command:
This command will create a model named ModelName
in the app directory and its corresponding migration in the database/migrations directory. The migration will contain the name and age fields
.
Generate Relationships
To generate relationships for an existing model, use the atm:generate-relationship command:
This command will prompt you to choose the desired relationships and related models for the specified model.
Example
Available Options and Flags
Contributing
Contributions, issues, and feature requests are welcome! Feel free to open an issue or create a pull request.
License
This package is released under the MIT License.