hsuan / laravel-relation-maker
LaravelRelationMaker to help people generate model with relation
Fund package maintenance!
hsuan
Installs: 17 331
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: >=7.4
- illuminate/contracts: ^8.37
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
README
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.