abstract class SchemaState (View source)
protected Connection | $connection | The connection instance. | |
protected Filesystem | $files | The filesystem instance. | |
protected string | $migrationTable | The name of the application's migration table. | |
protected callable | $processFactory | The process factory callback. | |
protected callable | $output | The output callable instance. |
void | __construct(Connection $connection, Filesystem $files = null, callable $processFactory = null) Create a new dumper instance. | |
void | dump(Connection $connection, string $path) Dump the database's schema into a file. | |
void | load(string $path) Load the given schema file into the database. | |
Process | makeProcess(array ...$arguments) Create a new process instance. | |
$this | withMigrationTable(string $table) Specify the name of the application's migration table. | |
$this | handleOutputUsing(callable $output) Specify the callback that should be used to handle process output. |
Create a new dumper instance.
Dump the database's schema into a file.
Load the given schema file into the database.
Create a new process instance.
Specify the name of the application's migration table.
Specify the callback that should be used to handle process output.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/Schema/SchemaState.html