The package can help you generate model, migrations for eloquent relationship.
For example, php artisan make:relation Food hasMany Cookie
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"
php artisan make:relation {modelA} {relationship} {modelB}
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.