Download the PHP package iamkevinmckee/many-to-many without Composer
On this page you can find all versions of the php package iamkevinmckee/many-to-many. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iamkevinmckee/many-to-many
More information about iamkevinmckee/many-to-many
Files in iamkevinmckee/many-to-many
Package many-to-many
Short Description Easily generate a migration for a many to many relationship
License MIT
Homepage https://github.com/iamkevinmckee/many-to-many
Informations about the package many-to-many
Generate Many to Many Migrations
When you want to make a many to many relationship in Laravel, you need to create a pivot table. This package gives you a command to generate the migration for that pivot table automatically.
Installation
You can install the package via composer:
Usage
When you need to create a pivot table for a many to many relationship, just run the following command:
For example:
This will generate a migration with the following up method:
Then you only need to run the migrate command and add the relationship to the models.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Kevin McKee
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.