Laravel Voyager BREAD builder for your database.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Apply fixes from StyleCI Jun 26, 2018
src Nullifying the json string Jul 4, 2018
.styleci.yml first commit Jun 26, 2018
changelog.md first commit Jun 26, 2018
composer.json first commit Jun 26, 2018
contributing.md first commit Jun 26, 2018
license.md first commit Jun 26, 2018
phpunit.xml first commit Jun 26, 2018
readme.md styleci readme link Jun 26, 2018
rewriteRules.php Apply fixes from StyleCI Jun 26, 2018
rules.php Apply fixes from StyleCI Jun 26, 2018

readme.md

VoyagerBreadBuilder

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.