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.

getFilesystem()

Get the filesystem instance.

Details

at line line 31
void __construct( Filesystem $files)

Create a new migration creator instance.

Parameters

Filesystem $files

Return Value

void

at line line 45
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

at line line 135
void afterCreate( Closure $callback)

Register a post migration create hook.

Parameters

Closure $callback

Return Value

void

at line line 167
string getStubPath()

Get the path to the stubs.

Return Value

string

at line line 177
Filesystem getFilesystem()

Get the filesystem instance.

Return Value

Filesystem