Skip to content

hsuan1117/laravel-relation-maker

Repository files navigation

LaravelRelationMaker

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.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages