Skip to content

Commit fe846c6

Browse files
Add missing imports in migration example (#10291)
1 parent 4c0e15c commit fe846c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

migrations.md

+3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public function up(): void
140140
Sometimes a migration might be meant to support a feature that is not yet active and you do not want it to run yet. In this case you may define a `shouldRun` method on the migration. If the `shouldRun` method returns `false`, the migration will be skipped:
141141

142142
```php
143+
use App\Models\Flights;
144+
use Laravel\Pennant\Feature;
145+
143146
/**
144147
* Determine if this migration should run.
145148
*/

0 commit comments

Comments
 (0)