Skip to content

Commit 491c0d5

Browse files
author
m.ghanbari
committed
fixed bug: Call to undefined method.
1 parent 7b12b2b commit 491c0d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LaravelBatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function insert(Model $table, array $columns, array $values, int $batchSi
158158

159159
$valueString = implode(', ', $valueArray);
160160

161-
$query [] = "INSERT INTO `$table` (" . implode(',', $columns) . ") VALUES $valueString;";
161+
$query [] = "INSERT INTO `" . $this->getFullTableName($table) . "` (" . implode(',', $columns) . ") VALUES $valueString;";
162162

163163
}
164164

src/LaravelBatchServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class LaravelBatchServiceProvider extends ServiceProvider
1212
*/
1313
public function register()
1414
{
15-
$this->app->bind(Batch::class, function ($app){
15+
$this->app->bind('Batch', function ($app){
1616
return new Batch($app->make(DatabaseManager::class));
1717
});
1818
}

0 commit comments

Comments
 (0)