Skip to content

Instantly share code, notes, and snippets.

@Sean-Spallen
Created May 3, 2019 18:44
Show Gist options
  • Save Sean-Spallen/3aeea3702819f8b8ebee9438a89096bf to your computer and use it in GitHub Desktop.
Save Sean-Spallen/3aeea3702819f8b8ebee9438a89096bf to your computer and use it in GitHub Desktop.
Laravel - Migrate Up sample
public function up()
{
Schema::create('groceries', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('type');
$table->integer('price');
$table->timestamps();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment