@@ -44,7 +44,7 @@ public function __construct(Connection $connection, $collection)
44
44
*
45
45
* @param string|array $columns
46
46
* @param array $options
47
- * @return bool
47
+ * @return Blueprint
48
48
*/
49
49
public function index ($ columns = null , $ options = array ())
50
50
{
@@ -72,7 +72,7 @@ public function index($columns = null, $options = array())
72
72
* Indicate that the given index should be dropped.
73
73
*
74
74
* @param string|array $columns
75
- * @return bool
75
+ * @return Blueprint
76
76
*/
77
77
public function dropIndex ($ columns = null )
78
78
{
@@ -90,7 +90,7 @@ public function dropIndex($columns = null)
90
90
* Specify a unique index for the collection.
91
91
*
92
92
* @param string|array $columns
93
- * @return bool
93
+ * @return Blueprint
94
94
*/
95
95
public function unique ($ columns = null , $ name = null )
96
96
{
@@ -104,7 +104,7 @@ public function unique($columns = null, $name = null)
104
104
* Specify a non blocking index for the collection.
105
105
*
106
106
* @param string|array $columns
107
- * @return bool
107
+ * @return Blueprint
108
108
*/
109
109
public function background ($ columns = null )
110
110
{
@@ -118,7 +118,7 @@ public function background($columns = null)
118
118
* Specify a sparse index for the collection.
119
119
*
120
120
* @param string|array $columns
121
- * @return bool
121
+ * @return Blueprint
122
122
*/
123
123
public function sparse ($ columns = null )
124
124
{
@@ -134,7 +134,7 @@ public function sparse($columns = null)
134
134
*
135
135
* @param string|array $columns
136
136
* @param int $seconds
137
- * @return bool
137
+ * @return Blueprint
138
138
*/
139
139
public function expire ($ columns , $ seconds )
140
140
{
@@ -168,6 +168,16 @@ public function drop()
168
168
$ this ->collection ->drop ();
169
169
}
170
170
171
+ /**
172
+ * Allow an attribute to be null, does not do anything.
173
+ *
174
+ * @return Blueprint
175
+ */
176
+ public function nullable ()
177
+ {
178
+ return $ this ;
179
+ }
180
+
171
181
/**
172
182
* Add a new column to the blueprint.
173
183
*
0 commit comments