diff --git a/src/Bakery/Upgrade.php b/src/Bakery/Upgrade.php index cff620c..32bff05 100644 --- a/src/Bakery/Upgrade.php +++ b/src/Bakery/Upgrade.php @@ -202,7 +202,7 @@ protected function migrateUsers($tableName) $legacyRows = DB::connection()->table($tableName)->get(); foreach ($legacyRows as $legacyRow) { - list($firstName, $lastName) = explode(' ', $legacyRow->display_name); + list($firstName, $lastName) = explode(' ', $legacyRow->display_name, 1); DB::connection()->table('users')->insert([ 'id' => $legacyRow->id,