Skip to content

Instantly share code, notes, and snippets.

@ibrajix
Last active September 3, 2023 07:21
Show Gist options
  • Save ibrajix/50391b1e17dc29a06bc74ec4c74a6eca to your computer and use it in GitHub Desktop.
Save ibrajix/50391b1e17dc29a06bc74ec4c74a6eca to your computer and use it in GitHub Desktop.
Add new column to migration
public function up()
{
Schema::create('todo', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name'); //I added the name column
$table->text('description'); //I added the description column
});
}
public function down()
{
Schema::dropIfExists('todo');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment