@@ -44,9 +44,9 @@ public function hasCollection($name)
44
44
}
45
45
46
46
/** @inheritdoc */
47
- public function hasTable ($ collection )
47
+ public function hasTable ($ table )
48
48
{
49
- return $ this ->hasCollection ($ collection );
49
+ return $ this ->hasCollection ($ table );
50
50
}
51
51
52
52
/**
@@ -66,15 +66,15 @@ public function collection($collection, Closure $callback)
66
66
}
67
67
68
68
/** @inheritdoc */
69
- public function table ($ collection , Closure $ callback )
69
+ public function table ($ table , Closure $ callback )
70
70
{
71
- $ this ->collection ($ collection , $ callback );
71
+ $ this ->collection ($ table , $ callback );
72
72
}
73
73
74
74
/** @inheritdoc */
75
- public function create ($ collection , ?Closure $ callback = null , array $ options = [])
75
+ public function create ($ table , ?Closure $ callback = null , array $ options = [])
76
76
{
77
- $ blueprint = $ this ->createBlueprint ($ collection );
77
+ $ blueprint = $ this ->createBlueprint ($ table );
78
78
79
79
$ blueprint ->create ($ options );
80
80
@@ -84,17 +84,17 @@ public function create($collection, ?Closure $callback = null, array $options =
84
84
}
85
85
86
86
/** @inheritdoc */
87
- public function dropIfExists ($ collection )
87
+ public function dropIfExists ($ table )
88
88
{
89
- if ($ this ->hasCollection ($ collection )) {
90
- $ this ->drop ($ collection );
89
+ if ($ this ->hasCollection ($ table )) {
90
+ $ this ->drop ($ table );
91
91
}
92
92
}
93
93
94
94
/** @inheritdoc */
95
- public function drop ($ collection )
95
+ public function drop ($ table )
96
96
{
97
- $ blueprint = $ this ->createBlueprint ($ collection );
97
+ $ blueprint = $ this ->createBlueprint ($ table );
98
98
99
99
$ blueprint ->drop ();
100
100
}
@@ -108,9 +108,9 @@ public function dropAllTables()
108
108
}
109
109
110
110
/** @inheritdoc */
111
- protected function createBlueprint ($ collection , ?Closure $ callback = null )
111
+ protected function createBlueprint ($ table , ?Closure $ callback = null )
112
112
{
113
- return new Blueprint ($ this ->connection , $ collection );
113
+ return new Blueprint ($ this ->connection , $ table );
114
114
}
115
115
116
116
/**
0 commit comments