Update app/Database/Seeds/TestDatabaseBootstrapSeeder.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
objecttothis
2026-04-02 15:14:11 +04:00
committed by GitHub
parent f915a6de1f
commit fa95b9fc1f

View File

@@ -42,6 +42,9 @@ class TestDatabaseBootstrapSeeder extends Seeder
}
$sql = file_get_contents($sqlFile);
if ($sql === false) {
throw new \RuntimeException("Unable to read SQL file: {$sqlFile}");
}
foreach (explode(";", $sql) as $statement) {
$trim = trim($statement);