W3cubDocs

/Laravel 5.2

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

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.2/Illuminate/Database/Migrations/MigrationCreator.html