dewan/dewan-sql-seeder

v3.0.0 2024-08-03 09:59 UTC

This package is auto-updated.

Last update: 2025-07-01 00:12:30 UTC


README

here is doc

Installation

Run this command for install package.

composer require dewan/dewan-sql-seeder

Run this command for config publish.

php artisan vendor:publish --tag=dewan-sql-seeder-config --force

Basic use

Step- 1

Create folder named "dewan/sql" in database directory

My Image

Step- 2

Download or export .sql file from database

My Image

Step- 3

Remove extra code.

My Image

Step- 4

The code look like:

My Image

Step- 5

Run command:

php artisan dewan:sql-seed

The command copy all sql file to public/sql directory then run migrate:fresh and seed all data form sql file.