Truy cập vào file migration vừa tạo ra và gõ vào định nghĩa các column tương ứng của table articles.
$table->unsignedBigInteger(‘category_id’);
$table->unsignedBigInteger(‘creator_id’);
$table->string(‘name’);
$table->longText(‘content’);
$table->tinyInteger(‘status’)->default(1);
$table->string(‘thumbnail’)->nullable();
$table->json(‘images’)->nullable();