nadsoft/breads-seed

Package for Voyager BREAD seed for laravel 8.

dev-master 2020-11-23 08:56 UTC

This package is not auto-updated.

Last update: 2024-04-23 01:54:14 UTC


README

Installation

composer require nadsoft/breads-seed

1- write this command

 php artisan vendor:publish --provider="DrudgeRajen\VoyagerDeploymentOrchestrator\VoyagerDeploymentOrchestratorServiceProvider"

2- go to path

 config/voyager-deployment-orchestrator.php 

and add the tables name of which BREAD seeders will be generated , each table you will used in bread you must add it in this array

for example ..

return [
    'tables' => ["table1","table2"],
];

After Publishing the VoyagerDeploymentOrchestratorSeeder class file, autoload composer so that laravel knows about new seeders.

composer dump-autoload

Usage

3- add this namespace namespace Database\Seeders; in this path database/Seeders/VoyagerDeploymentOrchestratorSeeder

each bread created you must import it in this file;

To run the seeder file:

4- to run seeder you must write this command

 php artisan db:seed --class=VoyagerDeploymentOrchestratorSeeder

Develop By DrudgeRajen

Updated By Nadsoft Company