You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -141,16 +145,50 @@ public readonly Collection $droppedForeignKeys;
141
145
```
142
146
143
147
#### TableDropped Event
148
+
144
149
```php
145
150
public readonly string $table;
146
151
```
147
152
148
153
#### TableRenamed Event
154
+
149
155
```php
150
156
public readonly string $from;
151
157
public readonly string $to;
152
158
```
153
159
160
+
### Repository
161
+
162
+
The event repository collects the schema events that occur during the migrations which can be retrieved after the `MigrationsEnded` event is fired by the Migrator.
163
+
164
+
If your application wants to handle dispatching and flushing the events, you can set the `schema-events.listeners.finished` listener to `null` and listen to the `MigrationsEnded` event in your application.
165
+
166
+
The schema event repository can be controlled using the `SchemaEvents` facade.
167
+
168
+
#### get()
169
+
170
+
Retrieve all schema events that were fired during the course of the migrations.
171
+
172
+
#### created()
173
+
174
+
Retrieve all `TableCreated` events that were fired during the course of the migrations.
175
+
176
+
#### changed()
177
+
178
+
Retrieve all `TableChanged` events that were fired during the course of the migrations.
179
+
180
+
#### renamed()
181
+
182
+
Retrieve all `TableRenamed` events that were fired during the course of the migrations.
183
+
184
+
#### dropped()
185
+
186
+
Retrieve all `TableDropped` events that were fired during the course of the migrations.
187
+
188
+
#### flush()
189
+
190
+
Clear all schema events stored in the schema event repository.
191
+
154
192
## Contributing
155
193
156
194
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
0 commit comments