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.
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.
© 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