hsuan/laravel-relation-maker

LaravelRelationMaker to help people generate model with relation

v0.0.3 2021-07-15 15:04 UTC

This package is auto-updated.

Last update: 2024-10-21 18:09:28 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

The package can help you generate model, migrations for eloquent relationship. For example, php artisan make:relation Food hasMany Cookie

Installation

You can install the package via composer:

composer require hsuan/laravel-relation-maker --dev

You can publish the stubs with:

php artisan vendor:publish --provider="Hsuan\LaravelRelationMaker\LaravelRelationMakerServiceProvider" --tag="laravel-relation-maker-stubs"

Usage

php artisan make:relation {modelA} {relationship} {modelB}

Testing

composer test

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

License

The MIT License (MIT). Please see License File for more information.