Migration auto increment not bigint Hello,
How can I create a table with auto increment, primary key, id that is not bigint but normal int?
php
for($x=1;$x <20; $x++){
$x;
}
laravel blade
@for ($x=1;$x <20; $x++)
{{$x}}
@endfor
@michaelsholadiran Sorry, I guess you did not understand my question, I'm trying to create a database table with migration.
mysql database
just change the type of the field you want to increment to int(11) and check on the auto increment
@michaelsholadiran so, you can't make it auto-increment with the migration?
And the primary key, will it make this field primary key or do I have to go and do it manually as well?
@Sinnbeck Thanks, don't know how I missed that.
Please sign in or create an account to participate in this conversation.