定制 christian-schoenefeld/seeds-from-sql 二次开发

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

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

christian-schoenefeld/seeds-from-sql

Composer 安装命令:

composer require christian-schoenefeld/seeds-from-sql

包简介

This package shows different approaches to using seeds from a sql file.

README 文档

README

Latest Stable Version GitHub issues

Introduction text

This package shows different approaches to using seeds from a sql file.

Changelog

Version Description
v1.0.0 First approach of SQL import using "DB:unprepared"
v1.0.1 Add license to composer.json and remove Typo in README
v1.0.2 Remove wrong link in README
v1.0.3 Add v to Version

📦 Installation

To install you can use composer as follows

composer require christian-schoenefeld/seeds-from-sql

Then you have to add the seeder class to the main seeder class of the project and import the class there

<?php

namespace Database\Seeders;

use ChristianSchoenefeld\SeedsFromSql\Database\Seeders\SQLSeeder;
...

class DatabaseSeeder extends Seeder
{
   ...
    public function run()
    {
        $this->call(SQLSeeder::class);
    }
    ...
}

🚀 Use

You can get the forms manually with the following Command

Command Description functional
php artisan migrate Migrates the necessary unprepared table ✔️
php artisan db:seed Executes all seeds
php artisan db:seed --class=SQLSeeder Executes only the SQL unprepared seed

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固