codelabs/voyagerbreadbuilder

0.1.3 2018-07-04 05:46 UTC

README

Latest Version on Packagist Total Downloads Build Status

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.