appworldbr / voyager-bread-extractor
Extract Voyager BREAD from database to Seeder file.
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:voyager-package
This package is auto-updated.
Last update: 2025-05-29 01:46:04 UTC
README
Extract Voyager BREAD from database to Seeder File.
Getting Started
Prerequisites
- Laravel
- Voyager
Installing
composer require appworldbr/voyager-bread-extractor
Usage
After create the BREAD manually, run php artisan voyager:extract ModelWithNamespace
ex.
php artisan voyager:extract App/Models/Products/Product
Them a file in database/seeds
will be created with data_types
, data_row
, menu_item
, permissions
and BREAD translation
seeds.
After that, if you want to migrate with this seed, first you will need run composer dump-autoload
(read more) and them run php artisan db:seed --class=CLASSNAME
(read more).
php artisan db:seed --class=ProductsBREADTableSeeder
or you can add the Seeder file in DatabaseSeeder.php
file (read more)
and them run php artisan db:seed
(read more)
Authors
- Marcelo Araujo Jr - Initial work - AppWorld
License
This project is licensed under the MIT License - see the LICENSE.md file for details