MigrationCreator (Database\Migrations)

MigrationCreator

class MigrationCreator (View source)

Methods

void __construct(Filesystem $files)

Create a new migration creator instance.

string create(string $name, string $path, string $table = null, bool $create = false)

Create a new migration at the given path.

void afterCreate(Closure $callback)

Register a post migration create hook.

string getStubPath()

Get the path to the stubs.

Filesystem getFilesystem()

Get the filesystem instance.

Details

void __construct(Filesystem $files)

Create a new migration creator instance.

Parameters

Filesystem $files

Return Value

void

string create(string $name, string $path, string $table = null, bool $create = false)

Create a new migration at the given path.

Parameters

string $name
string $path
string $table
bool $create

Return Value

string

Exceptions

Exception

void afterCreate(Closure $callback)

Register a post migration create hook.

Parameters

Closure $callback

Return Value

void

string getStubPath()

Get the path to the stubs.

Return Value

string

Filesystem getFilesystem()

Get the filesystem instance.

Return Value

Filesystem

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部