Fix more incompatibilities with Laravel 5.5

This commit is contained in:
Franz Liedke 2017-12-20 00:20:23 +01:00
parent 54ecd48b72
commit b9f68921b7
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ return [
});
// Store slugs for existing discussions
$schema->getConnection()->table('discussions')->chunk(100, function ($discussions) use ($schema) {
$schema->getConnection()->table('discussions')->chunkById(100, function ($discussions) use ($schema) {
foreach ($discussions as $discussion) {
$schema->getConnection()->table('discussions')->where('id', $discussion->id)->update([
'slug' => Str::slug($discussion->title)

View File

@ -58,7 +58,8 @@ class DatabaseMigrationRepository implements MigrationRepositoryInterface
return $this->table()
->where('extension', $extension)
->orderBy('migration', 'asc')
->pluck('migration');
->pluck('migration')
->toArray();
}
/**