Skip to content

Instantly share code, notes, and snippets.

@Cyberiaaxis
Created November 12, 2017 08:06
Show Gist options
  • Save Cyberiaaxis/f66ba9bb7e9bfa2312a90ae4ce70122a to your computer and use it in GitHub Desktop.
Save Cyberiaaxis/f66ba9bb7e9bfa2312a90ae4ce70122a to your computer and use it in GitHub Desktop.
public function up()
{
Schema::create('topics', function (Blueprint $table) {
$table->increments('id');
$table->string('title')->nullable();
$table->string('duration')->nullable();
$table->timestamps();
$table->softDeletes();
$table->index(['deleted_at']);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment