codelabs / voyagerbreadbuilder
:description
Requires
- php: ^7.1.3
- illuminate/support: ~5
- tcg/voyager: ^1.1
Requires (Dev)
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~6.0
This package is not auto-updated.
Last update: 2024-11-10 05:40:43 UTC
README
Laravel Voyager BREAD builder for existing data. The intention of this package is to make it easy to make seeders for your BREAD.
Installation
Via Composer
$ composer require codelabs/voyagerbreadbuilder
Usage
Create a DataType seeder
$ php artisan bread:datatypes articles
Replace articles
with the name of the slug in your data_types
table. This will create the following file:
/database/seeds/articles/VoyagerDataTypesSeeder.php
Create a DataRow seeder
$ php artisan bread:datarows articles
Replace articles
with the name of the slug in your data_types
table. This will create the following file:
/database/seeds/articles/VoyagerDataRowSeeder.php
Create a Permission seeder
$ php artisan bread:permissions articles
Replace articles
with the name of the table you want to add permissions to.
This will create the following seeder:
/database/seeds/articles/VoyagerDataRowSeeder.php
This seeder will create the following in the permissions
table
- browse_articles
- read_articles
- edit_articles
- add_articles
- delete_articles
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email shawn@codelabs.ca instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.