Complete the code to create a new migration file using Artisan.
php artisan [1] create_users_tableUse make:migration to create a new migration file.
Complete the migration class name to follow Laravel conventions.
class [1] extends Migration
Migration class names use PascalCase and describe the action, like CreateUsersTable.
Fix the error in the migration method to create a table named 'posts'.
Schema::[1]('posts', function (Blueprint $table) { $table->id(); $table->string('title'); $table->timestamps(); });
Use Schema::create to create a new table in a migration.
Fill both blanks to add a nullable string column named 'description' to the table.
$table->[1]('[2]')->nullable();
Use string('description') to add a string column named 'description'. The nullable() method allows it to be empty.
Fill all three blanks to drop the 'users' table in the down method.
Schema::[1]('[2]', function (Blueprint $table) { $table->id(); }); // inside the down() method public function down() { Schema::[3]('[2]'); }
Use Schema::create('users', function (Blueprint $table) { $table->id(); }) in the up method to create the table, and Schema::dropIfExists('users') in the down method to remove it safely.