@@ -1677,6 +1677,7 @@ public function getMaxValue()
16771677 return null ;
16781678 }
16791679 $ dataType = $ this ->getEloquentDataMethod ();
1680+ $ max = 2147483647 ;
16801681
16811682 if ($ this ->isDecimal ()) {
16821683 $ length = $ this ->getMethodParam (0 ) ?: 1 ;
@@ -1687,21 +1688,20 @@ public function getMaxValue()
16871688 $ max = substr_replace ($ max , '. ' , $ declimal * -1 , 0 );
16881689 }
16891690 $ max = floatval ($ max );
1690- } elseif ($ dataType == 'integer ' ) {
1691+ } elseif ($ dataType == 'integer ' || $ dataType == ' increments ' ) {
16911692 $ max = $ this ->isUnsigned ? 4294967295 : 2147483647 ;
1692- } elseif ($ dataType == 'mediumInteger ' ) {
1693+ } elseif ($ dataType == 'mediumInteger ' || $ dataType == ' mediumIncrements ' ) {
16931694 $ max = $ this ->isUnsigned ? 16777215 : 8388607 ;
1694- } elseif ($ dataType == 'smallInteger ' ) {
1695+ } elseif ($ dataType == 'smallInteger ' || $ dataType == ' smallIncrements ' ) {
16951696 $ max = $ this ->isUnsigned ? 65535 : 32767 ;
1696- } elseif ($ dataType == 'tinyInteger ' ) {
1697+ } elseif ($ dataType == 'tinyInteger ' || $ dataType == ' tinyIncrements ' ) {
16971698 $ max = $ this ->isUnsigned ? 255 : 127 ;
1698- } elseif ($ dataType == 'bigInteger ' ) {
1699+ } elseif ($ dataType == 'bigInteger ' || $ dataType == ' bigIncrements ' ) {
16991700 $ max = $ this ->isUnsigned ? 18446744073709551615 : 9223372036854775807 ;
17001701 }
17011702
17021703 return $ max ;
17031704 }
1704-
17051705 /**
17061706 * Gets the minimum value a field can equal.
17071707 *
0 commit comments