Laravel - Database Basics and Migrations
Which of the following is the correct syntax to add an auto-incrementing primary key column named 'id' in a Laravel migration?
increments creates an auto-incrementing integer primary key.$table->increments('id'); is the standard and correct syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions