Quickly generate pivot tables for your projects
timwassenburg/laravel-pivot-table-generator is a Laravel package for quickly generate pivot tables for your projects.
It currently has 8 GitHub stars and 27.157 downloads on Packagist (latest version v1.0.1).
Install it with composer require timwassenburg/laravel-pivot-table-generator.
Discover more Laravel packages by timwassenburg
or browse all Laravel packages to compare alternatives.
Last updated
Install the package with composer.
composer require timwassenburg/laravel-pivot-table-generator --dev
Run the following command on the command-line to generate a new migration for the pivot table.
php artisan make:pivot {first_table_name} {second_table_name}
The command will create a new migration in database/migrations. Run the migrations to create the table.
php artisan migrate
Run the tests with:
composer test
Looking for more ways to speed up your workflow? Make sure to check out these packages.
The packages mentioned above are part of Laravel Artisan Extender.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)The MIT License (MIT). Please see License File for more information.