@@ -44,9 +44,9 @@ public function hasCollection($name)
4444 }
4545
4646 /** @inheritdoc */
47- public function hasTable ($ collection )
47+ public function hasTable ($ table )
4848 {
49- return $ this ->hasCollection ($ collection );
49+ return $ this ->hasCollection ($ table );
5050 }
5151
5252 /**
@@ -66,15 +66,15 @@ public function collection($collection, Closure $callback)
6666 }
6767
6868 /** @inheritdoc */
69- public function table ($ collection , Closure $ callback )
69+ public function table ($ table , Closure $ callback )
7070 {
71- $ this ->collection ($ collection , $ callback );
71+ $ this ->collection ($ table , $ callback );
7272 }
7373
7474 /** @inheritdoc */
75- public function create ($ collection , ?Closure $ callback = null , array $ options = [])
75+ public function create ($ table , ?Closure $ callback = null , array $ options = [])
7676 {
77- $ blueprint = $ this ->createBlueprint ($ collection );
77+ $ blueprint = $ this ->createBlueprint ($ table );
7878
7979 $ blueprint ->create ($ options );
8080
@@ -84,17 +84,17 @@ public function create($collection, ?Closure $callback = null, array $options =
8484 }
8585
8686 /** @inheritdoc */
87- public function dropIfExists ($ collection )
87+ public function dropIfExists ($ table )
8888 {
89- if ($ this ->hasCollection ($ collection )) {
90- $ this ->drop ($ collection );
89+ if ($ this ->hasCollection ($ table )) {
90+ $ this ->drop ($ table );
9191 }
9292 }
9393
9494 /** @inheritdoc */
95- public function drop ($ collection )
95+ public function drop ($ table )
9696 {
97- $ blueprint = $ this ->createBlueprint ($ collection );
97+ $ blueprint = $ this ->createBlueprint ($ table );
9898
9999 $ blueprint ->drop ();
100100 }
@@ -108,9 +108,9 @@ public function dropAllTables()
108108 }
109109
110110 /** @inheritdoc */
111- protected function createBlueprint ($ collection , ?Closure $ callback = null )
111+ protected function createBlueprint ($ table , ?Closure $ callback = null )
112112 {
113- return new Blueprint ($ this ->connection , $ collection );
113+ return new Blueprint ($ this ->connection , $ table );
114114 }
115115
116116 /**
0 commit comments