Methods |
public
|
__construct(Filesystem $files, string $customStubPath): void
Create a new migration creator instance.
Create a new migration creator instance.
|
#
|
public
|
create(string $name, string $path, string|null $table = null, bool $create = false): string
Create a new migration at the given path.
Create a new migration at the given path.
Throws
|
#
|
public
|
afterCreate(Closure $callback): void
Register a post migration create hook.
Register a post migration create hook.
|
#
|
public
|
stubPath(): string
Get the path to the stubs.
Get the path to the stubs.
|
#
|
public
|
getFilesystem(): Filesystem
Get the filesystem instance.
Get the filesystem instance.
|
#
|