We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 138fae9 + dc870ac commit d162b9bCopy full SHA for d162b9b
.gitignore
@@ -0,0 +1 @@
1
+.idea
src/LaravelBatchServiceProvider.php
@@ -3,14 +3,17 @@
3
namespace Mavinoo\LaravelBatch;
4
5
use Illuminate\Support\ServiceProvider;
6
-
+use Illuminate\Database\DatabaseManager;
7
8
class LaravelBatchServiceProvider extends ServiceProvider
9
{
10
+ /**
11
+ * @updateedBy Ibrahim Sakr <ebrahimes@gmail.com>
12
+ */
13
public function register()
14
- $this->app->bind('Batch', function (){
- return new Batch;
15
+ $this->app->bind(Batch::class, function ($app){
16
+ return new Batch($app->make(DatabaseManager::class));
17
});
18
}
-}
19
+}
0 commit comments