定制 rasel9w9/data-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rasel9w9/data-generator

最新稳定版本:1.2

Composer 安装命令:

composer require rasel9w9/data-generator

包简介

This is For Make Seeder Or Generate The Table Data As Array

README 文档

README

Easily export data using . This package has been tested since Laravel 10.

Installation

Run this composer command in your laravel application: Only Mysql version 1.1;

composer require rasel9w9/data-generator:^1.1

support oracle database18c in 1.2 version with mysql

composer require rasel9w9/data-generator:^1.2

To start using Laravel, add the Service Provider and the Facade to your config/app.php:

Note: This package supports auto-discovery features of Laravel 5.5+, You only need to manually add the service provider and alias if working on Laravel version lower then 5.5.

'providers' => [
    // ...
    rasel9w9\DataGenerator\DataGeneratorServiceProvider::class,
]

Basic Usage

To use Data Generator add something like this to one of your controllers.

#Using Artisan Command

	//to export specific table data
	php artisan alauddin:generate-table-data --table=youreTableName

	//To export All Tables Of the database
	php artisan alauddin:generate-data

#Using Controller

//....

use rasel9w9\DataGenerator\GenerateData;

class DataController extends Controller 
{
    public function data()
    {
    	//To Generate data Of specific table
        $object = new GenerateData();
        $object->generateTableData("yourTableName");

        //To Generate data Of All The tables 
        $object->generateData();


        //The Data is saved to /database/seeders/data directory with separate table name as file name.The file(s) has no extension just open the file in a editor and you can see your table data as php array.
    }

}

统计信息

  • 总下载量: 69
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-10-29