Seeder (Database)

Seeder

class Seeder (View source)

Methods

void run()

Run the database seeds.

void call(string $class)

Seed the given connection from the given path.

$this setContainer(Container $container)

Set the IoC container instance.

$this setCommand(Command $command)

Set the console command instance.

Details

abstract void run()

Run the database seeds.

Return Value

void

void call(string $class)

Seed the given connection from the given path.

Parameters

string $class

Return Value

void

$this setContainer(Container $container)

Set the IoC container instance.

Parameters

Container $container

Return Value

$this

$this setCommand(Command $command)

Set the console command instance.

Parameters

Command $command

Return Value

$this

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Database/Seeder.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部