Skip to content

Instantly share code, notes, and snippets.

@aavrug
Created June 3, 2015 04:53
Show Gist options
  • Save aavrug/e82e910068671090fb2b to your computer and use it in GitHub Desktop.
Save aavrug/e82e910068671090fb2b to your computer and use it in GitHub Desktop.
public function up()
{
Schema::create('articles', function(Blueprint $table)
{
$table->increments('id');
$table->string('title');
$table->text('body');
$table->timestamps('published_at');
$table->timestamps();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment