Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-relation-maker maintained by hsuan

Description
LaravelRelationMaker to help people generate model with relation
Author
Last update
2021/07/15 17:04 (dev-main)
License
Downloads
17 341

Comments
comments powered by Disqus

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.