smallint in laravel migration code example
Example: laravel migration table bigint
$this->bigIncrements('id');
This takes care of making it unsigned, auto increment and primary key
$this->bigIncrements('id');
This takes care of making it unsigned, auto increment and primary key